Forum Moderators: coopster

Message Too Old, No Replies

Some strange libpng warnings

         

ag_47

4:51 am on Sep 7, 2008 (gmt 0)

10+ Year Member



I have a php script creating a catpcha PNG image, something like:

header ( 'Content-type: image/png' );
@imagepng( $captchaImage, NULL, 9, PNG_ALL_FILTERS);

Everything works nicely, but I just noticed some errors in my server log file:

libpng warning: Incomplete compressed datastream in iCCP chunk
libpng warning: Profile size field missing from iCCP chunk

Searching the web didn't really help, seems to be some bug the library.
Wondering if anyone has any ideas if there are fixes to this. I still don't fully understand what these mean in the first place.

eelixduppy

4:54 pm on Sep 8, 2008 (gmt 0)



You get this yet? Cannot find any bugs on this. I have a feeling it is an error with the image itself, but I'm not sure. Don't think it's a problem with PHP, though. Anyone else have any ideas?

PHP_Chimp

6:03 pm on Sep 8, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



It is a problem with the image...or at least php's reading of the image.
Have a look at [libpng.org...] for the highly interesting details on the iCCP chunk ;)