我需要将SVG转换为EPS,目前使用inkscape来完成此操作。
要使用Inkscape图形用户界面版本转换SVG,只需打开svg,然后选择“另存为”'logo.eps',取消选中“光栅化滤镜效果”选项。
然而,我想使用命令行自动化此过程。
inkscape logo.svg -E logo.eps
可以工作,但不会禁用滤镜光栅化。我已经做了一些研究,但无法弄清如何实现,有人能提供我正确的命令吗?谢谢。
我要用的命令来解决这个问题是
inkscape in.svg -E out.eps --export-ignore-filters --export-ps-level=3
其中in.svg是您的图像,out.eps是生成的eps文件。
如Vladimir在评论中所建议的,较新版本的inkscape没有-E
选项,因此需将其替换为-o
。
有点晚了,但是谷歌把我带到了这里
在需要账户的网站上找到了部分解决方案。这让你可以转换文件夹中的所有文件。
for file in *.svg; do inkscape "$file" -E "${file%svg}eps" --export-ignore-filters --export-ps-level=3; done
/Applications/Inkscape.app/Contents/Resources/bin/inkscape ~/Downloads/logo.svg -E ~/Downloads/logo-out.eps --export-ignore-filters --export-ps-level=3
- Adrien Jolyinkscape file.svg --export-type=eps file.eps --export-ignore-filters --export-ps-level=3
;否则我得到了Unknown option -E
。 - thcipriani