imagecat.io module

Helpers for implementing Imagecat I/O.

imagecat.io.loaders = [<function pickle_loader>, <function pil_loader>]

List of available loader plugins. In-house plugins may be prepended to this list for use with imagecat.operator.load().

imagecat.io.openexr_loader(task, path, layers)[source]

Image loader plugin for OpenEXR (.exr) files.

Implemented using https://www.excamera.com/sphinx/articles-openexr.html

Use imagecat.operator.load() to load images in an Imagecat workflow.

imagecat.io.openexr_saver(task, image, layers, path)[source]

Image saver plugin for OpenEXR (.exr) files.

Implemented using https://www.excamera.com/sphinx/articles-openexr.html

Use imagecat.operator.save() to save images in an Imagecat workflow.

imagecat.io.pickle_loader(task, path, layers)[source]

Image loader plugin for Imagecat Pickle (.icp) files.

The .icp format serializes an Imagecat image as a gzip2-compressed Python pickle object. It is primarily used in testing, and is not recommended for general use.

Use imagecat.operator.load() to load images in an Imagecat workflow.

imagecat.io.pickle_saver(task, image, layers, path)[source]

Image saver plugin for Imagecat Pickle (.icp) files.

The .icp format serializes an Imagecat image as a gzip2-compressed Python pickle object. It is primarily used in testing, and is not recommended for general use.

Use imagecat.operator.save() to save images in an Imagecat workflow.

imagecat.io.pil_loader(task, path, layers)[source]

Image loader plugin that uses Pillow for file I/O.

Loads any file format supported by Pillow, https://pillow.readthedocs.io.

Use imagecat.operator.load() to load images in an Imagecat workflow.

imagecat.io.pil_saver(task, image, layers, path)[source]

Image saver plugin that uses Pillow for file I/O.

Saves any file format supported by Pillow, https://pillow.readthedocs.io.

Use imagecat.operator.save() to save images in an Imagecat workflow.

imagecat.io.savers = [<function pickle_saver>, <function pil_saver>]

List of available saver plugins. In-house plugins may be prepended to this list for use with imagecat.operator.save().