Skip to content

Instantly share code, notes, and snippets.

@jclif
Created October 20, 2013 21:46
Show Gist options
  • Save jclif/7075721 to your computer and use it in GitHub Desktop.
Save jclif/7075721 to your computer and use it in GitHub Desktop.
Takes all png files in current directory, uses image magick to shadow them, and puts the shadowed copy into a directory called shadow (which must already exist)
for i in *.png; do convert $i '(' +clone -background black -shadow 90x5+5+5 ')' +swap -background none -layers merge +repage shadow/$i.png; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment