[Image-SIG] PIL / group4 CCITT Compression in TIFF
olpa@sybcom.de
olpa@sybcom.de
Mon, 2 Apr 2001 16:34:13 +0200 (CEST)
On Today, warmerda@spitfire.velocet.net wrote:
> Date: Mon, 02 Apr 2001 09:10:10 -0400
> From: Frank Warmerdam <warmerdam@pobox.com>
> To: olpa@sybcom.de
> Subject: Re: [Image-SIG] PIL / group4 CCITT Compression in TIFF
>
> olpa@sybcom.de wrote:
> >
> > Hi Folks,
> >
> > I browsed through the mailing list and found some questions asking for
> > group4 decompression in TIFF files. I found no hint about a current
> > development or library available.
> >
> > Is this still the actual status ?
> >
> > I would need a group4 decompressor for TIFF files !
>
> Oliver,
>
> I am a little confused about what you need. The libtiff library
> already includes support for compressing and decompressing CCITT group 4
> tiff files. Isn't this what PIL is using?
Unfortunately, this is not really true (I think). I got a blank PIL 1.1.1
from www.pythonware.org and compiled it.
When I execute following code:
>>> a=PIL.Image.open('2000120114153400--0-1.tif')
>>> a.save('b.jpg')
Traceback (innermost last):
File "<stdin>", line 1, in ?
File "/usr/lib/python1.5/site-packages/PIL/Image.py", line 663, in save
self.load()
File "/usr/lib/python1.5/site-packages/PIL/ImageFile.py", line 133, in
load
d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
File "/usr/lib/python1.5/site-packages/PIL/Image.py", line 237, in
_getdecoder
raise IOError, "decoder %s not available" % decoder_name
IOError: decoder group4 not available
>>> exit
where the .tif file is a CCITT group4 compressed file.
It seems, there is no decoder for group4 in PIL.
How can I load this file ???
libtiff should have a group4 decoder...
Regards,
oliver
---
Running Windows on a Pentium is like having a brand new Porsche but only
be able to drive backwards with the handbrake on.
(Unknown source)
---
Oliver Pabst .-------------------------.
mailto:olpa@sybcom.de : :
phone :+49 681 56600600 : project department : SYBCOM GmbH
fax :+49 681 56600660 : : http://www.sybcom.de