Skip to content

Instantly share code, notes, and snippets.

@hschne
Created July 21, 2021 20:36
Show Gist options
  • Save hschne/05f18c691903ff0b9589ca5a25558985 to your computer and use it in GitHub Desktop.
Save hschne/05f18c691903ff0b9589ca5a25558985 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
# Add drop shadows to any pictures in the current folder
for file in *.png
do
convert $file \( +clone -background black -shadow 50x10+5+5 \) +swap -background none -layers merge +repage "$file"_shadow.png
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment