If you add the expert option
-set option:filter:verbose 1 and grab the standard output from teh convert command
you can look at the otuptu to see what 'filter' setup it used by default for that image.
See, IM Examples, Filters, Expert options
http://www.imagemagick.org/Usage/resize/#filter_options
Hmmm for example. downsize (minify) a solid color image (no transparency), result image junked.
Code: Select all
convert -size 100x100 xc: -set option:filter:verbose 1 -resize 50% null: | grep '^#'
#
# Resize Filter (for graphing)
#
# filter = SincFast
# window = SincFast
# support = 3
# win-support = 3
# blur = 1
# blurred_support = 3
# B,C = 0,0
#
NOTE this feature of the 'filter:verbose' expert setting was only just added last week, to allow users to see the final filter selection results. so update your IM NOW.
The above is the internal defination of a Lanczos Filter. That is a Sinc windowed Sinc, but using a Faster Polynomial Sinc equivalent, rather than a slow Trigonometric Sinc -- another recent change but one that only makes the filter faster with no effect on results.
Doing this again with a xc:none (a fully transparent image)
Code: Select all
convert -size 100x100 xc:none -set option:filter:verbose 1 -resize 50% null: | grep '^#'
#
# Resize Filter (for graphing)
#
# filter = Cubic
# window = Box
# support = 2
# win-support = 2
# blur = 1
# blurred_support = 2
# B,C = 0.333333,0.333333
#
The 'Box' window means it has no 'windowing' so this is just a Cubic filter with control settings of B=1/3 and C=1/3
That is the internal definition of a Mitchell-Netravali filter ('Mitchell' for short)
See Resize Cubic, B,C Settings
http://www.imagemagick.org/Usage/resize/#cubic_bc
See Resize page for all the nitty-gritty details of filters, what they look like, and the effects they generate.
PS: Mitch is used for downsize when transparency is involved as it will not produce 'ringing' effects in the transparency, where a larger (support 3) filter like Lanczos, can. Semi-transparency ringing is VERY bad and is best avoided.
Mitchell is the best compromise for that.
In Enlargements you also want to avoid ringing effects and enlargements make such an effect more pronounced. See the examples shown in Ringing Artifacts where enlargments were used on purpose to highlight the effect of ringing.
http://www.imagemagick.org/Usage/resize/#ringing