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

AdvertisingDept Layne.Bilyeu at robbstucky.net
Wed Oct 22 10:25:38 EDT 2003


Thank You Herbert!!!!

Your solution ...

editing PSDraw.py
and replacing gsize with gsave
fixes the problem!

PSDraw now works correctly.


-original message ----------------------------------------------

> 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



More information about the Image-SIG mailing list