我觉得我一定在做一些愚蠢的错误,但是我无法使它正常工作。这是我从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.
它确实存在。我想念什么?
最佳答案
您应该使用-e
或--export-png
,而不要同时使用两者,因为它们含义相同。
但是According to the docs,-e
和--export-png
不再可用。您应该改用-o
或--export-filename=FILENAME
。而且,由于-o
只是--export-filename
的快捷方式,因此您只能使用其中之一。
inkscape "C:\path\ship.svg" -o "C:\path\ship.png"
或者
inkscape "C:\path\ship.svg" --export-filename="C:\path\ship.png"
关于svg - 使用Inkscape命令行将svg转换为png失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34725801/