Mercurial > hg > mgallery
changeset 55:b1fa4fd593d1
Fix thumbnail/medium image JPEG quality handling to actually work. :S
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Mon, 12 Sep 2016 13:49:52 +0300 |
parents | 624c50e1b52d |
children | 7384504d7b52 |
files | mgtool.php |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/mgtool.php Mon Sep 12 13:49:26 2016 +0300 +++ b/mgtool.php Mon Sep 12 13:49:52 2016 +0300 @@ -110,7 +110,8 @@ $img->setImageDepth(8); $img->setFormat($outFormat); - $img->setCompressionQuality($outQuality); + $img->setImageCompression(Imagick::COMPRESSION_JPEG); + $img->setImageCompressionQuality($outQuality); $img->stripImage(); if (!empty($profiles))