Created
June 14, 2012 15:53
-
-
Save xslim/2931120 to your computer and use it in GitHub Desktop.
Make 3px rounded corners on PNG images
This file contains 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 | |
# Usage: find . -name "epg_cell_bg_*" -exec ./round_corners.sh '{}' \; | |
convert $1 \( +clone -alpha extract -draw 'fill black polygon 0,0 0,3 3,0 fill white circle 3,3, 3,0' \( +clone -flip \) \ | |
-compose Multiply -composite \( +clone -flop \) -compose Multiply -composite \) -alpha off \ | |
-compose CopyOpacity -composite $1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
yep )
First it was called
roundit
)