parse_from_mime method

On this page

parse_from_mime

Returns an Image2DFormat value that corresponds to the specified MIME code.

def parse_from_mime(cls, mime_code):
    ...
Parameter Type Description
mime_code str Arbitrary MIME-code.

Returns: Image2DFormat: Image2DFormat value. Returns Image2DFormat.undefined if the extension cannot be recognized.

See Also

On this page