Extracted from Pike v7.8 release 866 at 2016-11-06.
pike.ida.liu.se
[Top]
Image
Image.PSD

Method Image.PSD.decode_layers()


Method decode_layers

array(Image.Layer) decode_layers(string data, mapping|void options)

Description

Decodes a PSD image to an array of Image.Layer objects

Takes the same aptions mapping as _decode , note especially "draw_all_layers":1, but implements "crop_to_bounds" which preserves the bounding box for the whole image (i.e. discards data that extend outside of the global bounds).

The layer object have the following extra variables (to be queried using Image.Layer()->get_misc_value ):

"image_guides"

Returns array containing guide definitions.

"name"

Returns string containing the name of the layer.

"visible"

Is 1 of the layer is visible and 0 if it is hidden.