note 109807 added to imagick.setimagecompressionquality

From: Date: Thu, 23 Aug 2012 03:23:27 +0000
Subject: note 109807 added to imagick.setimagecompressionquality
Groups: php.notes 
Request: Send a blank email to php-notes+get-190179@lists.php.net to get a copy of this message
I had strange results when trying to get good png compression. I used Imagick::COMPRESSION_ZIP Here are a few file sizes for a few compression levels. 0: 236,100 1: 274,035 9: 258,379 50: 241,282 100: 240,156 Note the best result at 0. Also I got thrown off for a long time trying to get similar results to gimp. Make sure your image depth is set to 8, it appears to be 16 bits per channel, at least for me. You can check with identify -verbose filename.png You can also strip a bit more file size with $image->stripImage(); ---- Server IP: 69.147.83.197 Probable Submitter: 121.98.197.104 ---- Manual Page -- http://www.php.net/manual/en/imagick.setimagecompressionquality.php Edit -- https://master.php.net/note/edit/109807 Del: integrated -- https://master.php.net/note/delete/109807/integrated Del: useless -- https://master.php.net/note/delete/109807/useless Del: bad code -- https://master.php.net/note/delete/109807/bad+code Del: spam -- https://master.php.net/note/delete/109807/spam Del: non-english -- https://master.php.net/note/delete/109807/non-english Del: in docs -- https://master.php.net/note/delete/109807/in+docs Del: other reasons-- https://master.php.net/note/delete/109807 Reject -- https://master.php.net/note/reject/109807 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#190179) next »