Created
January 8, 2014 04:29
-
-
Save tmtk75/8311840 to your computer and use it in GitHub Desktop.
svg to png with inkscape on windows
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
PATH=$PATH:/Program\ Files/Inkscape | |
size=${1:-960} | |
\ls *.svg | head -n1 | while read n; do | |
inkscape.exe "$n" \ | |
--export-width=$size \ | |
--export-height=$size \ | |
--export-png="${n%.svg}_${size}px.png" | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment