F
F
frie6662020-07-02 15:55:07
PHP
frie666, 2020-07-02 15:55:07

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
5efdd7d3dd29f151120730.jpeg

here is the quality of photoshop
5efddeb89b2a0473380777.jpeg

here is the original image
content_hotel_5910fc53686285.59220468.jp

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Anton Anton, 2020-07-02
@frie666

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).

M
mt. NATS, 2020-07-02
@Dimastik86

Moreover, even Photoshop does it! Try something in good quality and large size greatly reduced. Work with vector....

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question