When an image has an alpha channel that is fully opaque, "-alpha off" before a resize shouldn't make a difference, but it does.
Here is a test case. Create a black and white image with alpha channel, but fully opaque:
Code: Select all
convert ^
-size 32x32 xc:White ^
-gravity Center -background Black -extent 64x64 ^
-alpha on ^
st0.tga
Code: Select all
convert ^
st0.tga ^
-alpha off -resize 25%% ^
st1.png
convert ^
st0.tga ^
-resize 25%% ^
st2.png
Code: Select all
compare -metric RMSE st1.png st2.png NULL:
convert st1.png st2.png -compose Difference -composite -auto-level stDiff.png
EDIT: Sorry, forgot to say: tested in 6.8.6-10 on Windows 7.