note 115534 deleted from function.imagepng by salathe
| From: | salathe@php.net | Date: | Fri, 22 Aug 2014 08:03:08 +0000 |
| Subject: | note 115534 deleted from function.imagepng by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200247@lists.php.net to get a copy of this message | ||
Note Submitter: htmlstudio
----
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