Code: Select all
convert netscape: -distort resize 100x100! -flatten x.png

Note the image size of 102x102, and a 2px green border on the bottom and right egde.
When I run the same command with "-resize" instead of "-distort resize", I get a 100x100 image without border:

I would have expected both commands to produce a 100x100 image without border.
Why is -distort resize behaving differently, and how can I prevent it?
(I prefer to use -distort resize because of the better result quality, especially when upscaling.)
ImageMagick version: 6.9.2-6 Q16 x86_64 2015-12-06, on Linux.