Quickies

[categories] [index] [all (531)] [latest]

ImageMagick
  1. $ convert picture.jpg \
    \( +clone -background black -shadow 70x4+5+5 \) +swap \
    -background none -flatten -trim +repage picture.png
    
  2. $ convert foo.png -resize 500x400 -background white -flatten foo.jpg
    

    Source: http://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=8359