PIL: Group4 Tiff Images

Doug Tolton dtolton at yahoo.com
Fri Sep 26 11:46:09 EDT 2003


Does PIL still not have a Group4 Tiff decoder available?  I can load a
group4 Tiff just fine, but when I attempt to show it I get:

>>> im = Image.open('images/00000001.tif')
>>> im.show()
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
  File "C:\PYTHON23\Lib\site-packages\PIL\Image.py", line 1192, in
show
    _showxv(self, title, command)
  File "C:\PYTHON23\Lib\site-packages\PIL\Image.py", line 1739, in
_showxv
    file = self._dump(format=format)
  File "C:\PYTHON23\Lib\site-packages\PIL\Image.py", line 410, in
_dump
    self.load()
  File "C:\PYTHON23\Lib\site-packages\PIL\ImageFile.py", line 165, in
load
    d = Image._getdecoder(self.mode, d, a, self.decoderconfig)
  File "C:\PYTHON23\Lib\site-packages\PIL\Image.py", line 309, in
_getdecoder
    raise IOError("decoder %s not available" % decoder_name)
IOError: decoder group4 not available

I have been able to load a group4 tif into the wxImage class, but I
get tag errors when attempting to do so.

Is there a better way of working with Group4 Tiffs?  I have a huge
volume of Tiffs and decompressing them isn't a good option for me.

Any ideas on the best way to tackle this problem?


Doug Tolton
(format t "~a@~a~a.~a" "dtolton" "ya" "hoo" "com")




More information about the Python-list mailing list