Mazzarolo Matteo
Mazzarolo Matteo

Apply a MacOS-like drop shadow to any image

By Mazzarolo Matteo

The MacOS screenshot utility adds a nice drop shadow to your screenshots.


You can apply a similar drop shadow to any image using ImageMagick.

Make sure ImageMagick is installed:

brew install imagemagick

Then, run:

convert screenshot-without-shadow.png \( +clone -background black -shadow 80x20+0+15 \) +swap -background transparent -layers merge +repage screenshot-with-shadow.png

That’s it!

Source: Stephen’s Java Adventures.