openImage

lib.openImage.check_libtiff(compression)
lib.openImage.open(uri)
lib.openImage.open_image_exif(uri)
lib.openImage.open_image_exif_thumb(uri)
lib.openImage.open_image_with_command(filename, command, app, extension='png', temp_ext=None)

Open with an external command (such as Inkscape, dcraw, imagemagick).

Parameters:
  • filename (string) – filename, from which a temporary filename will be derived
  • command (string) – conversion command with optional temp file interpolation
  • extension (string) – file type
  • temp_ext (string) – if a temp file can not be specified to the command (eg dcraw), give the file extension of the command output
lib.openImage.open_image_with_pil(uri)
lib.openImage.open_image_without_pil(filename, method_register)
Try to open images which PIL can’t handle.
lib.openImage.open_thumb(filename, image=None, open_image=<function open_image_exif_thumb at 0x89f74c4>, size=(128, 128), save_cache=True)
lib.openImage.verify_image(info_file, valid, invalid, method_register=<lib.system.MethodRegister instance at 0x8a0a96c>)
lib.openImage.verify_image_with_pil(info_file, valid, invalid)
lib.openImage.verify_image_without_pil(info_file, method_register, valid, invalid)
Try to verify images which PIL can’t handle.

Previous topic

odict

Next topic

pyWx