Method Image.ANY.decode()
- Method
_decode
Method decode
Method decode_alpha
mapping_decode(stringdata)
objectdecode(stringdata)
objectdecode_alpha(stringdata)- Description
Tries heuristics to find the correct method of decoding the data, then calls that method.
The result of _decode() is a mapping that contains
"type":stringFile type information as MIME type (ie "image/jpeg" or similar)
"image":Image.Imagethe image object
alpha:intthe alpha channel or 0 if N/A
- Note
Throws upon failure.