问题
I feel like I must be doing something silly wrong, but I just can't get this to work. This is the command I am running from cmd:
inkscape.com "C:\path\ship.svg" -e --export-png="C:\Path\ship.png" --without-gui
In return, I get:
WARNING: File path "--export-png=C:\path\ship.png" includes directory that doesn't exist.
It does exist. What am I missing?
回答1:
-e
and --export-png
are the same argument, according to the docs. -e
is just the short version. So you should use either one, but not both.
Because you have -e
, the program thinks that --export-png="C:\Path\ship.png"
is the path to the png file.
Change to:
inkscape.com "C:\path\ship.svg" -e "C:\Path\ship.png" --without-gui
or:
inkscape.com "C:\path\ship.svg" --export-png="C:\Path\ship.png" --without-gui
来源:https://stackoverflow.com/questions/34725801/converting-svg-to-png-with-inkscape-command-line-failing