only shrink larger predictably no-op with -distort Resize
Posted: 2013-04-12T10:56:08-07:00
Part 1
What is the simplest way to get convert (or magick) to behave as follows? I would liketo be a no-op when the input image is small enough to fit in bigxbig.
This is what happens if I use convert -resize instead of convert -distort Resize. So, I basically am asking how I can get the same "no-op" behavior with -distort Resize. Of course, when downsampling an image without transparency, the default filter is Lanczos for -resize, which is interpolatory, and consequently would give a result which is less different from the no-op result than the default -distort Resize filter, namely Robidoux.
I do not want to swith to an interpolatory filter with -distort Resize (like Triangle).
Part 2
Same question if I use a named filter, that is, if I insert "-filter LanczosSharp" before "-distort Resize"?
What is the simplest way to get convert (or magick) to behave as follows? I would like
Code: Select all
convert (or magick) input.img -distort Resize bigxbig\> output.img
This is what happens if I use convert -resize instead of convert -distort Resize. So, I basically am asking how I can get the same "no-op" behavior with -distort Resize. Of course, when downsampling an image without transparency, the default filter is Lanczos for -resize, which is interpolatory, and consequently would give a result which is less different from the no-op result than the default -distort Resize filter, namely Robidoux.
I do not want to swith to an interpolatory filter with -distort Resize (like Triangle).
Part 2
Same question if I use a named filter, that is, if I insert "-filter LanczosSharp" before "-distort Resize"?