Quote:
Originally posted by Sastraxi
This would be no problem if there was only one IDAT in the file (uncompressed data would be channels * bytes_per_channel * width * height). However, there can be several, and there are no definate schemes as to how they're split up. Thus my dilemma; what should I pass for the uncompressed value?
From the PNG specs (p. 26, avaliable at the W3C):
Quote:
In a PNG file, the concatenation of the contents of all the IDAT chunks makes up a zlib datastream as specified
above. This datastream decompresses to filtered image data as described elsewhere in this document.
So, this should be simple now :)