[Image-SIG] PSDraw yields Undefined Error gsize when output on PSdevice

WEINHANDL Herbert weinhand at unileoben.ac.at
Wed Oct 22 05:52:32 EDT 2003


AdvertisingDept wrote:

 > I am trying to follow the example for PostScript Printing in the PIL 
manual
 >
 > When I use PSDraw() to generate postscript from an image, I can't 
print it.
 > When I try to send 'lena.ps' to the printer, the print job is aborted.
 >
 > The error it gives is always related to gsize.
 >
 > Error: undefined gsize


you are totally right :

    it should be    gsave    instead of    gsize   
    if you correct it in  lena.ps  it can be viewed with ghostscript
    you should correct it in PSDraw.py too


 > It does this on several different PostScript Devices.
 > I've tried converting to RGB, L, and CMYK modes to no avail.
 >
 > I've searched the various mailing lists and noticed that this has been
 > asked before, but no-one ever responds.
 >
 > What is the secret to getting the PSDraw example in the PIL Manual to
 > function correctly?
 >
 > Thanks In Advance.

Happy pythoning

Herbert

PS:  postscript is a nice  programming language too ;-)
 




More information about the Image-SIG mailing list