How can I rotate an image with ghostscript? I am visualizing eps to screen. I am using the command:
gs image.eps 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.
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.