Previous section To contents Next section

12.25 Image.TIFF

DESCRIPTION

METHOD
Image.TIFF.decode

SYNTAX
object decode(string data)

DESCRIPTION
Decodes a TIFF image.

NOTE
Throws upon error in data.

METHOD
Image.TIFF.encode,
Image.TIFF._encode

SYNTAX
string encode(object image)
string encode(object image,  mapping options)
string _encode(object image)
string _encode(object image,  mapping options)

DESCRIPTION
encode and _encode are identical.

The options argument may be a mapping containing zero or more encoding options:

normal options:
"compression":Image.TIFF.COMPRESSION_*,
"name":"an image name",
"comment":"an image comment",
"alpha":An alpha channel,
"dpy":Dots per inch (as a float),
"xdpy":Horizontal dots per inch (as a float),
"ydpy":Vertical dots per inch (as a float),

METHOD
Image.TIFF._decode

SYNTAX
mapping _decode(string data)

DESCRIPTION
Decodes a TIFF image to a mapping with at least the members image and alpha.

NOTE
Throws upon error in data.

Previous section To contents Next section