5

How can I rotate an image with ghostscript? I am visualizing eps to screen. I am using the command:

gs image.eps 
1
  • You might want to give pdfjam from texlive a try as well Commented Sep 7, 2020 at 8:55

2 Answers 2

2

try this way:

gs -dEPSCrop -c "<</Orientation 1>> setpagedevice" -f input.eps -c quit 

P.S this code snippet come from this post in the rhinocerus forum.

2
  • 1
    I have never understood what is '-c quit' for Commented Jan 9, 2013 at 15:00
  • 2
    @simona, "-c" executes a postscript command. The last "-c" option in the example executes "quit" command and ends the postscript elaboration. If you omit it, you'll obtain a ghostscript prompt waiting for a command. Commented Jan 11, 2013 at 21:49
1

A bit more modern Ghostscript

Newer Ghostscript versions come with the much improved eps2write device.

gs -dSAFER -dBATCH -dNOPAUSE -sDEVICE=eps2write \ -sOutputFile=output.eps \ -c "<</Orientation 3>> setpagedevice" \ -f input.eps 

The -dSAFER option keeps thing safe, prohibiting the input Ghostscript from performing arbitrary file read/write operations.

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.