I have normal and distorted images in project. I need to correctly resize only distorted images
How can I check if image is distorted or not with imagick
? Is there any imagick
properties which can help me?
Distorted image examples:
I have normal and distorted images in project. I need to correctly resize only distorted images
How can I check if image is distorted or not with imagick
? Is there any imagick
properties which can help me?
Distorted image examples:
The method signature is: Imagick::resizeImage ( int $columns , int $rows , int $filter , float $blur [, bool $bestfit = false ] )
You are missing the filter parameter, as so the image is being resized without preserving the aspect ratio.
Try passing in \Imagick::FILTER_LANCZOS as the filter parameter.