macromaniac
macromaniac

Reputation: 427

How to convert CMYK eps to CMYK jpeg with ghostscript?

Ghostscript changes colospace to RGB when converting CMYK eps to jpeg.The problem is to keep colorspace untouched during conversion. Thanx in advance.

Upvotes: 2

Views: 1649

Answers (1)

Kurt Pfeifle
Kurt Pfeifle

Reputation: 90193

Assuming you want to convert any RGB that may be in the EPS to CMYK, use this command on Windows:

gswin32c.exe ^
   -o c:/path/to/output-cmyk.jpeg ^
   -sDEVICE=jpegcmyk ^
    input-rgb.eps 

and this on Linux/Unix/MacOSX:

gs \
   -o /path/to/output-cmyk.jpeg \
   -sDEVICE=jpegcmyk \
    input-rgb.eps

Note, by default Ghostscript uses a resolution of 72 dpi for the JPEG output. If you want to change that to, say, 300 dpi, then add -r300 to the commandline.

Upvotes: 3

Related Questions