[Image-SIG] TIFF images loaded as 15 bit signed integers

Chris Mitchell chris.mit7 at gmail.com
Wed Jun 30 00:16:00 CEST 2010


Hey everyone,

I've run into a problem where using:

im = Image.open(file)
data = im.getdata()

results in data having negative values for pixels exceeding 32768.  im.mode
gives I;16B.  I'm thinking maybe the file is really little endian and
perhaps this is why I'm getting negative values.  Anyone ever have this
situation occurr before?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100629/b5f47b54/attachment-0001.html>


More information about the Image-SIG mailing list