[Image-SIG] TIF image with jpeg-compression error

Ulrik Svensson u+pil at lysator.liu.se
Sun Apr 25 17:11:26 EDT 2004


Hi!

PIL 1.1.4 (Debian package ver 1.1.4-3) does not seem to handle a
tif-image with jpeg-compression, created with GIMP. The test image is
attached.

/Ulrik Svensson

Python 2.3.3 (#2, Feb 24 2004, 09:29:20)
[GCC 3.3.3 (Debian)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import Image
>>> Image.open("test-jpeg.tif").load()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "/usr/lib/python2.3/site-packages/PIL/ImageFile.py", line 165, in
load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "/usr/lib/python2.3/site-packages/PIL/Image.py", line 307, in
_getdecoder
    return apply(decoder, (mode,) + args + extra)
TypeError: function takes at least 3 arguments (2 given)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test-jpeg.tif.gz
Type: application/x-gzip
Size: 1830 bytes
Desc: not available
Url : http://mail.python.org/pipermail/image-sig/attachments/20040425/962d3377/test-jpeg.tif-0001.gz


More information about the Image-SIG mailing list