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

Chris Mitchell chris.mit7 at gmail.com
Thu Jul 1 05:56:02 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 I'm not exactly sure how
plausible that scenario is.  Anyone ever have this situation occur before?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/image-sig/attachments/20100630/369b6f39/attachment-0001.html>


More information about the Image-SIG mailing list