Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 0.9.5

Bug #18592 Imagick3 compression quality
Submitted: 2011-06-09 16:29 UTC
From: fredericpoeydomenge Assigned:
Status: Open Package: Image_Transform (version 0.9.4)
PHP Version: 5.3.1 OS:
Roadmaps: (Not assigned)    
Subscription  


 [2011-06-09 16:29 UTC] fredericpoeydomenge (Frederic Poeydomenge)
Description: ------------ I found some issues related to "quality" parameter in Image/Transform/Driver/Imagick3.php class : First of all, the "setImageCompression" method is mistakenly invoked to set Quality, when it should rather be a call to "setImageCompressionQuality" method... Also, I noticed that when generating thumbnails, resulting files are much bigger than corresponding GD picture (same quality parameter) ?!? To solve that, I discovered that a call to Imagick::stripImage() would clean extraneous data... Test script: --------------- Replace : $this->imagick->setImageCompression($quality); By : $this->imagick->setImageCompression(Imagick::COMPRESSION_JPEG); $this->imagick->setImageCompressionQuality($quality); $this->imagick->stripImage();

Comments