Last active
July 10, 2020 07:04
-
-
Save adityabhaskar/62d4fbdba4500cdd915aa38978e5bac1 to your computer and use it in GitHub Desktop.
Command line image utils - SVG to PNG, Drop shadow
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
# Add macOS window screenshot style dropshadow | |
convert inputfile.png \( +clone -background Black -shadow 50x25+0+20 \) +swap -background none -layers merge +repage outputFile.png |
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
# svg to png | |
# cd temp | |
inkscape --export-png $(pwd)/square.png -w 512 -h 512 $(pwd)/square-512.svg |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment