[Image-SIG] Re: Tiff g3

ewc at axelero.hu ewc at axelero.hu
Thu Dec 11 05:58:50 EST 2003


Hello Fredrik,

many thanks!
Does anybody know when will be a new PIL available including this
patch?

I applied a patch. I was able to open TIFF G3 files but got this when
I tryed to save:
Traceback (most recent call last):
  File "./tiff.py", line 36, in ?
    im.save("/tmp/test_o.tiff")
  File "/usr/local/lib/python2.3/site-packages/PIL/Image.py", line 1136, in save
    SAVE[string.upper(format)](self, fp, filename)
  File "/usr/local/lib/python2.3/site-packages/PIL/TiffImagePlugin.py", line 684, in _save
    offset = ifd.save(fp)
  File "/usr/local/lib/python2.3/site-packages/PIL/TiffImagePlugin.py", line 357, in save
    data = string.join(map(o32, value), "")
  File "/usr/local/lib/python2.3/site-packages/PIL/TiffImagePlugin.py", line 55, in ol32
    return chr(i&255) + chr(i>>8&255) + chr(i>>16&255) + chr(i>>24&255)
TypeError: unsupported operand type(s) for &: 'str' and 'int'

Does anybody know what's wrong?

Thanks,
        Thomas

Thursday, December 11, 2003, 10:47:38 AM, you wrote:

FL> "Thomas" <ewc at axelero.hu> wrote:

>> does anybody have TIFF G3 compression implemented for PIL?

FL> this might be helpful:

FL>     http://mail.python.org/pipermail/image-sig/2003-July/002354.html

FL> </F>





More information about the Image-SIG mailing list