Answer the question
In order to leave comments, you need to log in
Why does Imagemagick mess up image quality after resizing?
I resize the image with the following parameters
$image = new Imagick($uploadfile);
$image->setImageCompressionQuality(100);
$image->setImageCompression(0);
$image->adaptiveResizeImage(320, 300, true);
$image->writeImage($direcrotyfile.'_320.jpg');
it turns out like this, the image loses quality
here is the quality of photoshop
here is the original image
Answer the question
In order to leave comments, you need to log in
It looks like adaptiveResizeImage doesn't contain the applied filter setting and uses the simplest one. Try using resizeImage with the FILTER_LANCZOS filter or something else (you can try to find a filter that gives the best result).
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question