Default resize filters
Posted: 2010-09-20T00:42:24-07:00
I know that for downsizing images with "-resize", IM usually uses Lanczos (not Mitchell). Except when there's an alpha layer or when it's a 'colormapped' image - right? According to the guides here:
http://www.imagemagick.org/Usage/resize/
http://www.imagemagick.org/script/comma ... php#filter
Are there any other exceptions or rules for that (especially with 'colormapped' images)? What exactly does IM check in order to decide which default filter to use?
An example:Here, Mitchell is used. OK.
But now:Here, apparently Lanczos is used. Well, IM identifies no 'colormap' (as the default PNG output is the normal RGB format, not a palette format) - but it's still the same image, with type "palette" and less than 256 colors. Shouldn't the same resizing filter be used as in the case above?
http://www.imagemagick.org/Usage/resize/
http://www.imagemagick.org/script/comma ... php#filter
Are there any other exceptions or rules for that (especially with 'colormapped' images)? What exactly does IM check in order to decide which default filter to use?
An example:
Code: Select all
convert logo: -resize x200 test1.png
But now:
Code: Select all
convert logo: logo.png
convert logo.png -resize x200 test2.png