Skip to content

Instantly share code, notes, and snippets.

@pwab
Created November 24, 2023 13:22
Show Gist options
  • Save pwab/8f10bfe352b2310c74ec4d1f294cb7be to your computer and use it in GitHub Desktop.
Save pwab/8f10bfe352b2310c74ec4d1f294cb7be to your computer and use it in GitHub Desktop.
Convert SVG to PNG with a batch script using Inkscape on Windows
:treeProcess
rem Do whatever you want here over the files of this subdir, for example:
FOR %%A IN (*.svg) DO "C:\Program Files\Inkscape\bin\inkscape.com" %%A --export-filename=%%A.png --export-width=128 --export-height=128
for /D %%d in (*) do (
cd %%d
call :treeProcess
cd ..
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment