note 115534 added to function.imagepng
| From: | htmlstudio | Date: | Mon, 11 Aug 2014 12:56:23 +0000 |
| Subject: | note 115534 added to function.imagepng | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-200170@lists.php.net to get a copy of this message | ||
Quality at level 0 can be smaller than 9 (checked in php 5.4), reason is that 1-9 is "zlib
compression", but 0 represent "Huffman compression" ("not compression" is a
lie).
Try both levels and choose better one.
Using some external program (like optipng) is also good idea. Imagick extension have also several
methods, which you can use to optimize image.
You can read more about png compression at http://www.imagemagick.org/Usage/formats/#png_quality
----
Server IP: 46.17.113.50
Probable Submitter: 89.68.93.9
----
Manual Page -- http://php.net/manual/en/function.imagepng.php
Edit -- https://master.php.net/note/edit/115534
Del: integrated -- https://master.php.net/note/delete/115534/integrated
Del: useless -- https://master.php.net/note/delete/115534/useless
Del: bad code -- https://master.php.net/note/delete/115534/bad+code
Del: spam -- https://master.php.net/note/delete/115534/spam
Del: non-english -- https://master.php.net/note/delete/115534/non-english
Del: in docs -- https://master.php.net/note/delete/115534/in+docs
Del: other reasons-- https://master.php.net/note/delete/115534
Reject -- https://master.php.net/note/reject/115534
Search -- https://master.php.net/manage/user-notes.php