Pixel interpolation methods in ImageMagick (2004)
imagemagick.org
imagemagick.org
$im->resizeImage($box_x, $box_y, Imagick::FILTER_LANCZOS, 1, 1);
or... $im->resizeImage($box_x, $box_y, Imagick::FILTER_CATROM, 1, 1);
On the man page there is no obvious way to use the imagick::INTERPOLATE_SPLINE constant when resizing images:http://php.net/manual/en/imagick.resizeimage.php
It is a shame that such small tweaks is always a non-existent man-page away with PHP's ImageMagick wrapper. (Using spline could smooth out a lot of straight and thin edges, but, as it is, I will never find out.)
Could you just use a gaussian blur instead?
To set interpolation for e.g. rotation operations, you'd use the setImageInterpolateMethod method:
http://php.net/manual/en/imagick.setimageinterpolatemethod.p...
https://github.com/mkoppanen/imagick/blob/3.3.0/imagick_help...
I'm less sure of how much of a difference this will make for other transformations but it's very important for scaling.