Imagick - Image quality setting seems to have no effect.

Changing the Image Quality setting in the Image Options seems to have no effect on the file sizes created. A setting of 50 on all sliders creates the same sized image as a setting of 85. Using v1.4.6 with Zenpage theme and PHP Imagick library 3.1.2. I clear the album's cache each time and newly created images are the same size (bytes).

Actually, the resized image which is smaller than the original one ends up with a larger file size. Original is 659x518 at 88,082 bytes and the resized one is 580x456 at 111,236 bytes. This is with the Image Quality set to either 50 or 85.

Update: On the version I have installed on my PC, it's using PHP GD library bundled (2.0.34 compatible) and the Image Quality setting does have an effect. On the webhost if I uncheck Imagick in the Image Options to use the GD library then the Image Quality settings make a difference.

So, it seems to be some hard-coded thing using Imagick? I prefer Imagick as it retains all the ExiF and IPTC information.

So I guess, should the Image Quality settings affect Imagick?

Comments

  • acrylian Administrator, Developer
    Did you try with the GDlibary as well? I cannot test Imagick at the moment.
  • MarkRH Member
    I updated my post regarding GD. See above. It does have an effect with GD.
  • acrylian Administrator, Developer
    Sounds like a bug, both should of course behave the same (besides their differences). Please open a ticket on the bugtracker.
  • fretzl Administrator, Developer
    I added "Imagick" to the subject of this topic so its author (@kagutsuchi) may spot it.
  • I responded to your Github ticket. I believe I know the issue, but have no way of testing it. If someone else could test the change, that'd be fantastic.
  • MarkRH Member
    I updated Github. I tested the change for JPGs and it seems to work for my version of PHP and IMagick. Thanks :)
Sign In or Register to comment.