note 81740 added to function.imagepng
| From: | ChadAllard at osu1 dot php dot net | Date: | Tue, 11 Mar 2008 23:39:43 +0000 |
| Subject: | note 81740 added to function.imagepng | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-136954@lists.php.net to get a copy of this message | ||
In reply to Jeff Sauro, It seems that since 5.1, imagepng() accepts compression argument. The
compression argument must be between 0 (no compression) and 9.
so instead of saying
imagepng($image,$file_location,100);
you might try this instead:
imagepng($image, $file_location, 0);
So I don't think that adding all the additional parameters is quite necessary.
I'm not quite certain, but this might actually be a glitch in GD2? There might even be a patch
available.
----
Server IP: 64.71.164.2
Probable Submitter: 64.42.204.52
----
Manual Page -- http://www.php.net/manual/en/function.imagepng.php
Edit -- https://master.php.net/note/edit/81740
Del: integrated -- https://master.php.net/note/delete/81740/integrated
Del: useless -- https://master.php.net/note/delete/81740/useless
Del: bad code -- https://master.php.net/note/delete/81740/bad+code
Del: spam -- https://master.php.net/note/delete/81740/spam
Del: non-english -- https://master.php.net/note/delete/81740/non-english
Del: in docs -- https://master.php.net/note/delete/81740/in+docs
Del: other reasons-- https://master.php.net/note/delete/81740
Reject -- https://master.php.net/note/reject/81740
Search -- https://master.php.net/manage/user-notes.php