如何在GhostScript中将SVG转换为EPS [英] How to covert svg to eps in ghostscript
问题描述
您能帮我用一条命令将svg文件转换为ghostscript中的eps吗?我试图在Gimp中打开svg文件,但是它很大,因此看起来gimp无法打开它或花费了太长时间.我有两个要转换的文件.
Can you please help me with a command to convert svg file to eps in ghostscript? I tried to open the svg file in Gimp but it is very big so it looks like gimp cannot open it or it take too long. I have two files which I want to convert.
注意:我已经完成了从png到svg的转换,以将栅格转换为矢量,并且转换占用了我的大部分系统磁盘空间(近2GB).有可能使用外部高速缓存驱动器作为命令吗?
Note: I have done a conversion from png to svg to convert raster to vectors and the convertion take most of my system disk space (almost 2GB). There for is it possible to use external cache drive for the command?
推荐答案
您将需要Ghostscript的姐妹"应用程序,称为GhostPDL. GhostPDL包含一个名为gsvg
的可执行文件(在Windows上为gsvg.exe
),可以使用SVG输入和输出PostScript,PDF,PNG,TIFF,PPM,PBM,JPEG等.
You'll need the 'sister' application to Ghostscript, called GhostPDL. GhostPDL includes an executable named gsvg
(or gsvg.exe
on Windows) which can consume SVG input and output PostScript, PDF, PNG, TIFF, PPM, PBM, JPEG and some more.
您可能需要从源代码编译GhostPDL .然后运行2个命令:
You probably need to compile GhostPDL from source. Then run 2 commands:
gsvg \
-dNOPAUSE \
-sDEVICE=ps2write \
-sOutputFile=my.ps \
my.svg
gsvg
显然不支持直接EPS写入.接下来,运行:
gsvg
apparently doesn't support direct EPS writing. So next, run:
gs \
-dNOPAUSE \
-sDEVICE=epswrite \
-sOutputFile=my.eps \
my.ps
这篇关于如何在GhostScript中将SVG转换为EPS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!