[PYTHON IMAGE-SIG] PIL questions:
Kent Polk
kent@eaenki.nde.swri.edu
Wed, 23 Apr 1997 16:22:14
1) Why am I having trouble saving jpegs? :
imput file type:
File "pp2jpg.py", line 42, in ?
out.save(newfile,'JPEG')
File "/usr/local/lib/python1.4/Image.py", line 356, in save
SAVE[string.upper(format)](self, fp, filename)
File "/usr/local/lib/python1.4/JpegImagePlugin.py", line 285, in _save
ImageFile._save(im, fp, [("jpeg", (0,0)+im.size, 0, im.mode)])
File "/usr/local/lib/python1.4/ImageFile.py", line 229, in _save
e = _getencoder(e, b, a, im.encoderconfig)
File "/usr/local/lib/python1.4/ImageFile.py", line 63, in _getencoder
raise IOError, "encoder %s not available" % d
IOError: encoder jpeg not available
or:
Traceback (innermost last):
File "pp2jpg.py", line 42, in ?
out.save(newfile,'JFIF')
File "/usr/local/lib/python1.4/Image.py", line 358, in save
raise IOError, "cannot save %s files" % v
IOError: cannot save JFIF files
yet:
ld -G _imagingmodule.o decode.o encode.o display.o path.o libImaging/libImaging.a /usr/local/lib/libjpeg.a /usr/local/lib/libz.a -o _imagingmodule.so
/usr/local/lib/libjpeg.a is valid...
2) How to convert from 'RGB' (PPM 425x550) to 'P' (GIF)?
I read the point method which I presume one could use to affect
the conversion, but how does know how to build the table?
Thanks
_______________
IMAGE-SIG - SIG on Image Processing with Python
send messages to: image-sig@python.org
administrivia to: image-sig-request@python.org
_______________