Skip to content

Instantly share code, notes, and snippets.

@previtus
Created June 8, 2017 03:04
Show Gist options
  • Save previtus/3cf2eec46e9512231c121cfa32d568fb to your computer and use it in GitHub Desktop.
Save previtus/3cf2eec46e9512231c121cfa32d568fb to your computer and use it in GitHub Desktop.
# use inkscape to convert all *.svg into *.png on Windows
for /f "tokens=* delims=\n" %i in ('dir /b *.svg') do "C:\Program Files (x86)\Inkscape\inkscape.exe" --without-gui --file="%i" --export-png="%i.png" --export-background=white --export-dpi=300
# print the names
for /f "tokens=* delims=\n" %i in ('dir /b *.svg') do echo %i
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment