Skip to content

Instantly share code, notes, and snippets.

@tmtk75
Created January 8, 2014 04:29
Show Gist options
  • Save tmtk75/8311840 to your computer and use it in GitHub Desktop.
Save tmtk75/8311840 to your computer and use it in GitHub Desktop.
svg to png with inkscape on windows
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