[Image-SIG] PIL 1.0b1 can't read PCX files

Bernhard Herzog herzog@online.de
Wed, 3 Feb 1999 19:18:57 +0100


PIL 1.0b1 can't read PCX files. This is the traceback:

Python 1.5.1 (#6, Nov 12 1998, 22:06:25)  [GCC 2.7.2.1] on linux2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
>>> import Image 
>>> Image.open('cork1c.pcx')
<PcxImagePlugin.PcxImageFile instance at 8164288>
>>> _.load()
Traceback (innermost last):
  File "<stdin>", line 1, in ?
  File "/usr/local/lib/python1.5/site-packages/PIL/ImageFile.py", line 134, in load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/usr/local/lib/python1.5/site-packages/PIL/Image.py", line 225, in _getdecoder
    return apply(decoder, (mode,) + args + extra)
ValueError: unknown raw mode
>>> 


The earlier versions (e.g. 0.3b2) didn't have problems with this.

If necessary, I can mail you (Fredrik) the pcx file.




	Bernhard