Miscellaneous#
Image Types#
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.
Methods:
Name | Description |
---|---|
from_mode_string | Create an ImageMode from its string representation. |
Attributes:
Name | Type | Description |
---|---|---|
L | | |
L16 | | |
LA | | |
LA16 | | |
RGB | | |
RGB16 | | |
RGB32F | | |
RGBA | | |
RGBA16 | | |
RGBA32F | |
from_mode_string #
from_mode_string(mode: str) -> ImageMode
Create an ImageMode from its string representation.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
mode | str | String representation of the mode. This is the same as the enum attribute name, e.g. | required |
Source code in daft/daft/__init__.pyi
68 69 70 71 72 73 74 75 76 77 |
|
ImageFormat #
Supported image formats for Daft's image I/O.
Methods:
Name | Description |
---|---|
from_format_string | Create an ImageFormat from its string representation. |
Attributes:
Name | Type | Description |
---|---|---|
BMP | | |
GIF | | |
JPEG | | |
PNG | | |
TIFF | |
from_format_string #
from_format_string(mode: str) -> ImageFormat
Create an ImageFormat from its string representation.
Source code in daft/daft/__init__.pyi
125 126 127 128 |
|