Created
March 8, 2012 02:05
-
-
Save fedeisas/1998044 to your computer and use it in GitHub Desktop.
ImageMagick-fu reminder
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
| /* SOURCE URL */ | |
| http://www.printableworldflags.com/flag-icon | |
| /* CREATE TRANSPARENT FILL 32x32 */ | |
| convert -size 32x32 xc:transparent -fill 'rgba(180, 180, 180, 0.8)' -draw 'rectangle 0,0 32,32' trans.png | |
| /* CREATE SEMI-TRANS IMAGE (mix flag.png & trans.png) */ | |
| composite -dissolve 50% flag.png trans.png hover_flag.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment