Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
There are many options available for that virtual-pixel setting, which defines what IM does with the space not filled with any image after the distort. I used "none" which leaves a transparent background. You could use "black" or "white" or set a background color and use "-virtual-pixel background".
Just to be clear, GeeMack is providing an IM 6 alternative that does the same as -extent (though not as straight-forward), but using -distort Affine. In IM7 6, you can only use % escapes in a few functions including -distort, but not -extent.