Extracted from Pike v7.6 release 61 at 2005-12-30.
pike.ida.liu.se
[Top]
Image
Image.ANY

Method Image.ANY.decode()


Method decode

mapping Image.ANY._decode(string data)
object Image.ANY.decode(string data)
object Image.ANY.decode_alpha(string data)

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":image data type (ie, "image/jpeg" or similar)
        "image":the image object,
        "alpha":the alpha channel or 0 if N/A

Note

Throws upon failure.