How to covert svg to eps in ghostscript

2020-07-09 09:53发布

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.

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?

2楼-- · 2020-07-09 10:24

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.

You probably need to compile GhostPDL from source. Then run 2 commands:

gsvg \
  -sDEVICE=ps2write \ \

gsvg apparently doesn't support direct EPS writing. So next, run:

gs \
  -sDEVICE=epswrite \
  -sOutputFile=my.eps \ 
登录 后发表回答