Blend -- As NearestBlend above.
Background -- just return the background color (as a error check for EWA resampling)
Spots (if wanted) can be created using Distort Resize with Box filter and the support setting.
----------
Question -- Should Resize, also deal with bad resampling in the same way the Distort does? That is do a interpolative lookup?
At the moment resize switches to 'point' if support is less than 0.5 (without regard to what the user is requesting), or produce black, if you use a non-box filter to generate 'zero weights' (For example by using Gaussian)...
Code: Select all
convert rose: -define filter:blur=0.01 -filter Gaussian \
-resize 100x100 rose_black_bars.png
Note: This is nothing to do with the user specifically requesting a 'point' filter (a support=0 impulse filter) and have resize switch to a interpolative lookup, as distort does. That I regard as a separate question, one solved by a 'interpolative resize' operator (in IMv7 but not in IMv6 unless I backport).