TIFF images loaded as 15 bit signed integers

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

TIFF images loaded as 15 bit signed integers

Chris Mitchell-2
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  -  [hidden email]
http://mail.python.org/mailman/listinfo/image-sig