The compression quality was not applied in Imagick
authorAlexander Ebert <ebert@woltlab.com>
Mon, 25 Jan 2021 18:36:08 +0000 (19:36 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Mon, 25 Jan 2021 18:36:08 +0000 (19:36 +0100)
wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php

index 1513e65c7b2d369fa7e45d1515cce913d6571bf2..afedf3d3c9373b41053773b7be3115f9f66487a8 100644 (file)
@@ -486,6 +486,8 @@ class ImagickImageAdapter implements IImageAdapter
             throw new \InvalidArgumentException("Given image is not a valid Imagick-object.");
         }
 
+        $image->setImageCompressionQuality($quality);
+
         // Greatly reduces the time required to create the image and drastically
         // reduces the filesize to more reasonable levels without a visible
         // quality loss.