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?".
convert thumbnail.gif \
\( +clone -crop 16x16+0+0 -fill white -colorize 100% \
-draw 'fill black circle 15,15 15,0' \
-background Red -alpha shape \
\( +clone -flip \) \( +clone -flop \) \( +clone -flip \) \
\) -flatten rounded_corners_red.png
It relies on -flip and -flop not only transforming the image, but also the image position on a virtual canvas, which was preserved by the -crop from the original image.
Another way, is to add alpha, do the transparent corner, then use the new (relativity new) operator -alpha remove to remove the transparency to background color correctly
How can I combine that with the rounded-corner code so the image with rounded corners is exactly the specified dimensions?
Either do the rounded corners to the image in parenthesis (before overlay) or do it after (before the save)
However rather than use centered compose, you can get the same thing more simply using -extent. See IM Examples, Thumbnails, Pad Out the Thumbnail http://www.imagemagick.org/Usage/thumbnails/#pad