diff --git a/svg2png.bat b/svg2png.bat index 1bea674209e4b9fb9f63018d4c2162b7319465f4..fea9cbe26b89f60ff4fbe9e8d11b9197aa28575c 100644 --- a/svg2png.bat +++ b/svg2png.bat @@ -1,6 +1,6 @@ @echo off setlocal enableExtensions enableDelayedExpansion -set PROGNAME="D:\Program Files\Inkscape\inkscape.exe" +set PROGNAME="C:\Program Files\Inkscape\bin\inkscape.exe" if "%1" == "-h" goto USER_INFO if "%1" == "--help" goto USER_INFO @@ -11,7 +11,7 @@ if "%1" == "" goto DO_ALL set SFILE=%1 set BNAME=!SFILE:~0,-4! @echo !SFILE! to !BNAME!.png -call !PROGNAME! -z -e "!BNAME!.png" -w 600 -d 300 -b white "!SFILE!" +call %PROGNAME% --export-type="png" --export-width=600 --export-dpi=300 --export-background="white" "!SFILE!" if not %errorlevel%==0 ( @echo Error exit /b 1 @@ -23,7 +23,7 @@ for /r %%P in (*.svg) do ( set SFILE=%%P set BNAME=!SFILE:~0,-4! @echo !SFILE! to !BNAME!.png - call !PROGNAME! -z -e "!BNAME!.png" -w 600 -d 300 -b white "!SFILE!" + call !PROGNAME! --export-type="png" --export-width=600 --export-dpi=300 --export-background="white" "!SFILE!" if not !errorlevel!==0 ( @echo Error exit /b 1 @@ -40,7 +40,7 @@ goto END @echo defined in the start of this batch file. Note that you cannot install @echo Inkscape from Microsoft Store. @echo. -@echo With no command-ine argument all SVG files are recursively converted to SVG files. +@echo With no command-line argument all SVG files are recursively converted to SVG files. @echo Alternatively, the name of single SVG file can be entered. @echo. goto END