Quantcast
Viewing all articles
Browse latest Browse all 8245

HansVanEijsden on "Apply ImageMagick sharpen filter to all images"

I would love to apply sharpening to all my images, because (as you probably know) after resizing all images need sharpening to stay crisp.
I have installed ImageMagick and also the PHP function, everything works fine.

What I need is:
$this->image->unsharpMaskImage(0 , 0.5 , 1 , 0);

Those are the perfect sharpening parameters for all of my images.

More about unsharpMaskImage here:
http://www.php.net/manual/en/imagick.unsharpmaskimage.php

I know there's a plugin, https://wordpress.org/plugins/sharpen-resized-images/ - but that plugin turns everything back to GD - which strips EXIF data and color profiles. So, that plugin is no option for me, I really want to use ImageMagick.

Where and how can I implement that unsharpMaskImage filter? Thanks!


Viewing all articles
Browse latest Browse all 8245

Trending Articles