Filters and resize

Images resized using different filters, there are some new filters now.

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.png"
exec ("convert fungi.png -filter $value -resize 300x300 -bordercolor black -border 1x1 $new_name"); 
echo 
"<tr><td><img src=\"".$new_name."\"width=\"302\" height=\"268\"></td>"
echo 
"<td>$value</td></tr>"

?>
Bartlett
Bartlett
Blackman
Blackman
Bohman
Bohman
Box
Box
Catrom
Catrom
Cubic
Cubic
Gaussian
Gaussian
Hamming
Hamming
Hanning
Hanning
Hermite
Hermite
Jinc
Jinc
Kaiser
Kaiser
Lagrange
Lagrange
Lanczos2Sharp
Lanczos2Sharp
Lanczos2
Lanczos2
LanczosSharp
LanczosSharp
Lanczos
Lanczos
Mitchell
Mitchell
Parzen
Parzen
Point
Point
Quadratic
Quadratic
Robidoux
Robidoux
SincFast
SincFast
Sinc
Sinc
Triangle
Triangle
Welsh
Welsh