Converting svg to png with inkscape command line failing

烈酒焚心 提交于 2019-12-22 08:04:25

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!