daft.ImageMode

daft.ImageMode#

class ImageMode#

Supported image modes for Daft’s image type.

Warning

Currently, only the 8-bit modes (L, LA, RGB, RGBA) can be stored in a DataFrame. If your binary image data includes other modes, use the mode argument in image.decode to convert the images to a supported mode.

L - 8-bit grayscale
LA - 8-bit grayscale + alpha
RGB - 8-bit RGB
RGBA - 8-bit RGB + alpha
L16 - 16-bit grayscale
LA16 - 16-bit grayscale + alpha
RGB16 - 16-bit RGB
RGBA16 - 16-bit RGB + alpha
RGB32F - 32-bit floating RGB
RGBA32F - 32-bit floating RGB + alpha
__init__()#

Methods

__init__()

from_mode_string(mode)

Create an ImageMode from its string representation.

Attributes

L

L16

LA

LA16

RGB

RGB16

RGB32F

RGBA

RGBA16

RGBA32F