[categories] [index] [all (531)] [latest]
$ convert picture.jpg \
\( +clone -background black -shadow 70x4+5+5 \) +swap \
-background none -flatten -trim +repage picture.png
$ convert foo.png -resize 500x400 -background white -flatten foo.jpg
Source: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=8359