Extracted from Pike v7.6 release 112 at 2008-06-25.
pike.ida.liu.se
[Top]
Image
Image.PS

Method Image.PS.decode()


Method decode

object Image.PS.decode(string data, mapping|void options)

Description

Decodes the postscript data into an image object using Ghostscript.

Parameter options

Optional decoding parameters.

"dpi" : int

The resolution the image should be rendered in. Defaults to 100.

"device" : string

The selected Ghostscript device. Defaults to "ppmraw".

"binary" : string

Path to the Ghostscript binary to be used. If missing the environment paths will be searched for a file "gs" to be used instead.

"force_gs" : int(0..1)

Forces use of Ghostscript for EPS files instead of Pikes native support.

"eps_crop" : int(0..1)

Use -dEPSCrop option to Ghostscript to crop the BoundingBox for a EPS file.

"cie_color" : int(0..1)

Use -dUseCIEColor option to Ghostscript for mapping color values through a CIE color space.