openImage

lib.openImage.get_info_libtiff(filename)

Get tiff info of a file with tiffinfo, which needs to be installed on your system.

Parameter:filename (string) – name of tiff image file
Returns:info about the file
Return type:dict
lib.openImage.open_dcraw(filename)
Open a camera raw image file.
lib.openImage.open_image(filename, command, app, extension='png', temp_ext=None)

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

Parameters:
  • filename (string) – filename
  • 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_imagemagick(filename)
Open an image with Imagemagick.
lib.openImage.open_inkscape(filename)
Open an Inkscape file.
lib.openImage.open_libtiff(filename)

Opens a tiff file with tiffcp, which needs to be installed on your system.

Parameter:filename (string) – name of tiff image file
Returns:PIL image
Return type:Image.Image
lib.openImage.open_xcf(filename)
Open a gimp file.
lib.openImage.save_libtiff(image, filename, compression=None, **options)

Saves a tiff compressed file with tiffcp.

Parameters:
  • image (Image.Image) – PIL image
  • filename (string) – name of tiff image file
  • compression (string) – g3, g4, jpeg, lzw, tiff_lzw
Returns:

log message

Return type:

string

Previous topic

odict

Next topic

pyWx

This Page