TIFF images loaded as 15 bit signed integers

Chris Mitchell <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
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?

_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.