note 78787 added to function.imagepng
| From: | phpman at texmedia dot de | Date: | Sat, 27 Oct 2007 21:06:49 +0000 |
| Subject: | note 78787 added to function.imagepng | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-131781@lists.php.net to get a copy of this message | ||
When changeing the PHP version from 4 to 5 I found out, that PHP5 handles imagepng() more
restrictive than in PHP4. I'd used
imagepng($image,'',90);
to reduce the image quality whithout saving the image as a file. The quality parameter is not
supported at all, I used imagejpg before and simply changed the function to imagepng whithout taking
care of the existing parameters. It did not matter and there was no error in PHP4. But in PHP5, the
image will not be shown anymore. So you have to remove it to have the standard:
imagepng($image);
----
Server IP: 217.160.72.57
Probable Submitter: 84.133.205.222
----
Manual Page -- http://www.php.net/manual/en/function.imagepng.php
Edit -- https://master.php.net/note/edit/78787
Del: integrated -- https://master.php.net/note/delete/78787/integrated
Del: useless -- https://master.php.net/note/delete/78787/useless
Del: bad code -- https://master.php.net/note/delete/78787/bad+code
Del: spam -- https://master.php.net/note/delete/78787/spam
Del: non-english -- https://master.php.net/note/delete/78787/non-english
Del: in docs -- https://master.php.net/note/delete/78787/in+docs
Del: other reasons-- https://master.php.net/note/delete/78787
Reject -- https://master.php.net/note/reject/78787
Search -- https://master.php.net/manage/user-notes.php