Created
September 18, 2015 11:02
-
-
Save DASPRiD/0007e20f13431c683100 to your computer and use it in GitHub Desktop.
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
#!/bin/bash | |
if [ -z "$1" ] | |
then | |
echo "No input file supplied" | |
fi | |
convert $1 \ | |
-trim -resize 512x512 \ | |
\( -clone 0 -background white -shadow 100x2+0+0 -channel A -level 0,5% +channel \) \ | |
-reverse -background none -layers merge +repage \ | |
\( -clone 0 -background black -shadow 25x5+5+5 \) \ | |
-reverse -background none -layers merge +repage \ | |
-resize 512x512 -gravity center -extent 512x512 \ | |
$1.sticker.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment