[Image-SIG] PSDraw Error

Nick Bower nick@nickbower.com
Tue, 26 Dec 2000 15:39:09 GMT


This doesn't produce recognizable output to ghostscript.  It's straight =

out of the PIL manual.  The "image" method is not mentioned in PSDraw=20
documentation btw.

im =3D Image.open('bahamas.gif').convert('L')
box =3D (1*72, 2*72, 7*72, 10*72)
outfp =3D open('bahamas.ps','w')
ps =3D PSDraw.PSDraw(outfp)
ps.begin_document()
ps.image(box,im,72)
ps.rectangle(box)
ps.end_document()

The gs error is "Error: /undefined in gsize".

BTW - Is there any way to control the bounding box with just a straight =

im.save('image.eps')?

Cheers, nick.