Filters and resize

Images resized using different filters, resized to 100px and displayed 3x size

From the ImageMagick website "If you do not select a filter with this option, the filter defaults to Mitchell for a colormapped image, a image with a matte channel, or if the image is enlarged. Otherwise the filter default to Lanczos." "Since options are evaluated in command line order, be sure to specify the -filter option before the -resize option."
There are more options you can use with the filters ImageMagick filter

Some code to try out all your installed filters on one image:

<?php
// Build the array of filters to be used
exec("convert -list filter"$IMarray$code);
// Start the loop to resize with the different filters
foreach ($IMarray as $value) {
$new_name $value."_resize.jpg";
exec ("convert sunflower.jpg -filter $value -resize 100x100 $new_name");
echo 
"<tr><td><img src=\"".$new_name."\"width=\"300\" height=\"225\"></td>";
echo 
"<td>$value</td></tr>;
}
?>
BesselBessel
BlackmanBlackman
BoxBox
CatromCatrom
CubicCubic
GaussianGaussian
HammingHamming
HanningHanning
HermiteHermite
KaiserKaiser
LagrangianLagrangian
LanczosLanczos
MitchellMitchell
ParzenParzen
PointPoint
QuadraticQuadratic
SincSinc
TriangleTriangle
WelshWelsh