[Image-SIG] 16-bit signed tiffs

Simon (Vsevolod) Ilyushchenko simonf at simonf.com
Mon Aug 8 20:33:00 CEST 2011


Hi,

I've tried to read a tiff file of type Int16 (signed int). PIL is able to
open a file, but can't read any data from it due to an unknown mode.

Indeed, Storage.c only recognizes the following 16-bit modes: I;16, I;16L,
I;16B. However, TiffImagePlugin.py thinks the mode should be I;16S.

Is this a known mismatch? Is it enough to just add I;16S to the check in
Storage.c, or is there more coding needed to make it really support signed
ints?

Thanks,
Simon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20110808/4d0c1b8c/attachment.html>


More information about the Image-SIG mailing list