Sounds good. I could see how having comments after the image chunks could cause a problem in some apps as that doesn't appear to follow the PNG spec, at least from my quick look at the general specs:
https://en.wikipedia.org/wiki/Portable_Network_GraphicsLooks like all critical and ancillary chunks are supposed to appear in the header... before the image chunks. Thanks for the followup though. That would explain why, when I traced the code in Qimage, it looked like some of the header/image reading functions were getting "invalid" data.
Mike