mapping Image.ANY._decode(string data) object Image.ANY.decode(string data) object Image.ANY.decode_alpha(string data)
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":image data type (ie, "image/jpeg" or similar) "image":the image object, "alpha":the alpha channel or 0 if N/A
"type":image data type (ie, "image/jpeg" or similar) "image":the image object, "alpha":the alpha channel or 0 if N/A
Throws upon failure.