note 79761 added to function.imagepng
| From: | drenintell at osu1 dot php dot net | Date: | Tue, 11 Dec 2007 20:02:06 +0000 |
| Subject: | note 79761 added to function.imagepng | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-133372@lists.php.net to get a copy of this message | ||
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
----
Server IP: 69.147.83.197
Probable Submitter: 99.229.228.119
----
Manual Page -- http://www.php.net/manual/en/function.imagepng.php
Edit -- https://master.php.net/note/edit/79761
Del: integrated -- https://master.php.net/note/delete/79761/integrated
Del: useless -- https://master.php.net/note/delete/79761/useless
Del: bad code -- https://master.php.net/note/delete/79761/bad+code
Del: spam -- https://master.php.net/note/delete/79761/spam
Del: non-english -- https://master.php.net/note/delete/79761/non-english
Del: in docs -- https://master.php.net/note/delete/79761/in+docs
Del: other reasons-- https://master.php.net/note/delete/79761
Reject -- https://master.php.net/note/reject/79761
Search -- https://master.php.net/manage/user-notes.php