[Insight-users] 32-bit PNG input trouble

Zachary Pincus zpincus at stanford.edu
Thu, 4 Mar 2004 04:28:28 -0800


Hello,

I noticed that the file reader doesn't appear to deal properly with 32 
bit PNG files. Perhaps this is by design, however, in that case trying 
to read in such a file should raise an exception.

Here is simple test code (it just reads a file to unsigned char, and 
writes it again) and a couple 32-bit png files which this code garbles, 
either by inverting the image, or just breaking it entirely: 
http://www.stanford.edu/~zpincus/CodeAndFiles.tgz

Zach Pincus

Department of Biochemistry and Program in Biomedical Informatics
Stanford University School of Medicine