GD is the internal format of libgd by Thomas Boutell, http://www.boutell.com/gd/ It is a rather simple, uncompressed, palette format.
The decode_header and _decode has these elements:
"image":object - image object \ "alpha":object - decoded alpha |- not decode_header "colortable":object - decoded palette /"type":"image/x-gd" - image type "xsize":int - horisontal size in pixels "ysize":int - vertical size in pixels "alpha_index":int - index to transparancy in palette -1 means no transparency "colors":int - numbers of colors
options is a mapping with optional values:
"colortable":object - palette to use (max 256 colors) "alpha":object - alpha channel (truncated to 1 bit) "alpha_index":int - index to transparancy in palette