[Image-SIG] Broken Pipe
Lionel Roubeyrie
lroubeyrie at limair.asso.fr
Thu Jan 27 12:08:58 CET 2005
Hi all,
New in the PIL land, I want to use it to transform a PostScript file into an
image file (png or gif), then I use this function:
#################################
def convert(infile, outfile):
import Image
fp = Image.open(infile)
fp.save(outfile)
return outfile
#################################
then convert('tutu.eps', 'tutu.jpg') works great. But if I call the same
function using mod_python with Apache2, I get:
#################################
File "/home/lionel/cartair.py", line 502, in convert
fp.save(outfile)
File "/usr/lib/python2.3/site-packages/PIL/Image.py", line 1125, in save
self.load()
File "/usr/lib/python2.3/site-packages/PIL/EpsImagePlugin.py", line 282, in
load
self.im = Ghostscript(self.tile, self.size, self.fp)
File "/usr/lib/python2.3/site-packages/PIL/EpsImagePlugin.py", line 73, in
Ghostscript
gs.write(s)
IOError: [Errno 32] Broken pipe
#################################
Do I have to change something?
Thanks
PS : I use Debian Sarge with Python2.3.4 and PIL1.1.4
--
Lionel Roubeyrie - lroubeyrie at limair.asso.fr
LIMAIR
http://www.limair.asso.fr
More information about the Image-SIG
mailing list