Skip to content

Instantly share code, notes, and snippets.

@adityabhaskar
Last active July 10, 2020 07:04
Show Gist options
  • Save adityabhaskar/62d4fbdba4500cdd915aa38978e5bac1 to your computer and use it in GitHub Desktop.
Save adityabhaskar/62d4fbdba4500cdd915aa38978e5bac1 to your computer and use it in GitHub Desktop.
Command line image utils - SVG to PNG, Drop shadow
# Add macOS window screenshot style dropshadow
convert inputfile.png \( +clone -background Black -shadow 50x25+0+20 \) +swap -background none -layers merge +repage outputFile.png
# 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