ImageEncoder Class

Inheritance diagram of ImageEncoder

class ImageEncoder

Methods:

encode(image, file, filename[, options]) Encode the given image to the given file.
get_file_extensions() Return a list of accepted file extensions, e.g.

Methods

ImageEncoder.encode(image, file, filename, options={})

Encode the given image to the given file. filename provides a hint to the file format desired. options are encoder-specific, and unknown options should be ignored or issue warnings.

ImageEncoder.get_file_extensions()

Return a list of accepted file extensions, e.g. [‘.png’, ‘.bmp’] Lower-case only.

Table Of Contents

Previous topic

ImageDecoder Class

Next topic

ImageDecodeException