The PIL has an issue opening 16 bit TIFF files in big endian format. Such files are common is scientific applications. I found the imaging-1.1.6 is affected. I found a post from Zach Pincus in the URL cited above, containing a fair description and fix of the bug. Reproducible: Always Steps to Reproduce: 1.open any TIFFs with big endian data 2. check the pixel values or the image in show() 3. Actual Results: One can find the bytes swapped from 16 bit big endian TIFF images.
Created attachment 120871 [details, diff] Patch of Zach Pincus After a bit of tweaking, finally this patch from the python mailing list worked for me.
The attached patch isn't that good, includes whitespace changes.
Patch applied in imaging-1.1.6-r1. Thanks.