Avatar
Hund

Linux, plaintext & minimalism

Adding drop shadows to images with ImageMagick

Here’s a quick little tip on how to add drop shadows to images via the command-line tool ImageMagick.

The command I used for this image was:

$ convert <input file> \( +clone -background black -shadow 50x8+0+5 \) +swap -background none -layers merge +repage <output file>

The part 50x8+0+5 controls the appearance of the shadow. The first value controls the opacity, the second one controls the radius and the two last ones controls the left/right and up/down alignment of the shadow.

Source: https://gist.github.com/chrisn/8157735

Feedback