note 79761 rejected from function.imagepng by felipe

From: Date: Sat, 15 Dec 2007 15:31:10 +0000
Subject: note 79761 rejected from function.imagepng by felipe
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-133571@lists.php.net to get a copy of this message
Note Submitter: drenintell ---- Greetings gentlemen, If you get any one of the following errors: Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in... Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in... Warning: imagepng() [function.imagepng]: gd-png: fatal libpng error: zlib error in... Warning: imagepng() [function.imagepng]: gd-png error: setjmp returns error condition in... And you are using similar code: <?php imagepng( $source, $output_img, 100 ); # Change it to: imagepng( $source, $output_img, 0 ); ?> 0 (zero) indicates no compression and therefore maximum image quality. 9 indicates maximum compression and therefore lower image quality. Regards, drenintell

« previous php.notes (#133571) next »