Change format of images (from PS to EPS) using Ghostscript

2

1

I have a question from experts in using Ghostscript. I am new in using this software. How can I change the format of an image from PS to EPS using Ghostscript?

Zahra

Posted 2018-12-24T16:04:02.253

Reputation: 21

Have you done any internet searching for this question? It appears this is a basic function of the application and similar questions here on SuperUser contain the answer as well: https://superuser.com/questions/182368/how-to-convert-pdf-to-eps-on-windows/189052#189052

– music2myear – 2018-12-24T17:06:03.347

@music2myear That question asks about converting ".PDF to .eps". That'snot what the OP is asking. – DavidPostill – 2018-12-24T18:39:12.667

Answers

0

I assume you are using a very recent version of Ghostscript. It so, run this command:

gs -o output-%00d.eps -sDEVICE=eps2write input.ps

For more ancient versions, use

gs -o output-%00d.eps -sDEVICE=epswrite input.ps

Note that EPS by design is and may only be single-page document format.

So if your single file input.ps consists of multiple pages, your output will consist of multiple EPS files ("images") which are named output-001.eps, output-002.eps, etc.

Kurt Pfeifle

Posted 2018-12-24T16:04:02.253

Reputation: 10 024