Avatar
Linux, plaintext & minimalism
March 4, 2019

Adding drop shadows to with ImageMagick

Here’s a quick little tip on how to add drop shadows to 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

Tags: ImageMagick

Feedback

I don't have a commenting system simply because I haven't found a solution that I like. If you want to leave any feedback and/or have any questions, feel free to contact me either via e-mail, fediverse, XMPP or IRC (I'm Hund at freenode.net).