Skip to content

Instantly share code, notes, and snippets.

@mogproject
Created September 17, 2015 15:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mogproject/b12ffe9e0ad2f893c113 to your computer and use it in GitHub Desktop.
Save mogproject/b12ffe9e0ad2f893c113 to your computer and use it in GitHub Desktop.
Image Conversion Cheat Sheet

svg -> png

/Applications/Inkscape.app/Contents/Resources/bin/inkscape \
--without-gui --export-width={{ WIDTH }} \
--file {{ INPUT }}.svg --export-png={{ OUTPUT }}.png

Note: In the inkspace command, current working directory will be set to /Applications/Inkscape.app.

png -> eps

convert -background white -layers merge {{ INPUT }}.png {{ OUTPUT }}.eps
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment