Pike v8.1 release 6

Method Image.ANY.decode_header()


Method decode_header

mapping decode_header(string data)

Description

Tries heuristics to find the correct method of decoding the header, then calls that method.

The resulting mapping depends on wich decode_header method that is executed, but these keys will probably exist

"xsize" : int

Size of image

"ysize" : int
"type" : string

File type information as MIME type.

"color_space" : string

Color space of image.

Note

Throws upon failure.