daft.ImageFormat.from_format_string
daft.ImageFormat.from_format_string#
- static ImageFormat.from_format_string(format)#
Create an ImageFormat from its string representation.
- Parameters
mode – String representation of the image format. This is the same as the enum attribute name, e.g.
ImageFormat.from_mode_string("JPEG")
would returnImageFormat.JPEG
.