Created
August 31, 2011 07:03
-
-
Save lqez/1182973 to your computer and use it in GitHub Desktop.
Add border and shadow to all png
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ls *.png | awk '{split($0,s,".");printf( "convert %s -bordercolor transparent -border 5 \\( +clone -channel A -morphology EdgeOut Octagon:5 +channel +level-colors white \\) -compose DstOver -composite \\( +clone -background black -shadow 60x5+5+5 \\) -background transparent -layers merge +repage %s_outline.png\n", $0, s[1] );}' | /bin/sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment