slicedimage

class slicedimage._formats.ImageFormat(value)[source]

The ImageFormat Enum exposes reading and writing methods for each enumerated object.

To add a new object, assign to a name (e.g., NEW_FORMAT) a 4-tuple of (reader_provider, writer_provider, file_extension, {alternative_extensions}).

slicedimage._formats.numpy_writer()[source]

Return a method that accepts (file, array) and saves it to the file. File may be a file-like object, str, or pathlib.Path.

slicedimage._formats.tiff_writer()[source]

Return a method that accepts (file, array) and saves it to the file. File may be a file-like object, str, or pathlib.Path.