使用Inkscape命令行将svg转换为png失败 [英] Converting svg to png with inkscape command line failing
本文介绍了使用Inkscape命令行将svg转换为png失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我觉得我一定在做一些愚蠢的错误,但是我无法使它正常工作.这是我从cmd运行的命令:
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
作为回报,我得到:
WARNING: File path "--export-png=C:\path\ship.png" includes directory that doesn't exist.
它确实存在.我想念什么?
It does exist. What am I missing?
推荐答案
-e
和--export-png
是相同的参数,根据文档. -e
只是简短版本.因此,您应该使用任何一个,但不能同时使用.
-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.
因为有-e
,所以程序认为--export-png="C:\Path\ship.png"
是png文件的路径.
Because you have -e
, the program thinks that --export-png="C:\Path\ship.png"
is the path to the png file.
更改为:
inkscape.com "C:\path\ship.svg" -e "C:\Path\ship.png" --without-gui
或:
inkscape.com "C:\path\ship.svg" --export-png="C:\Path\ship.png" --without-gui
这篇关于使用Inkscape命令行将svg转换为png失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文