Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to maintain color settings when converting EPS to JPEG with ImageMagick

I need to convert thousands of EPS files to JPEG, using ImageMagick.

The conversion is almost working - what is different is the colors are more saturated in the converted JPEG than in the original EPS when viewed in a browser.

However when I view the source EPS and the converted JPEG in Photoshop, the colors are identical. Here is the command that is producing the said results:

convert -density 300 -quality 100% -colorspace RGB \
        Mbox2.eps -flatten Mbox2.RGB.jpg

Does anybody know what's causing this and how to fix it?

like image 504
Slinky Avatar asked Mar 25 '10 16:03

Slinky


People also ask

Can EPS be saved as CMYK?

For best results in terms of rendering colors and shapes from screen to paper, EPS images should be converted to CMYK color space before printing.

How do I convert an image to EPS on Mac?

Go to File>Save As and choose Photoshop EPS as the output format. Optional. In the option box, select the option according to your needs. Then click Save to convert PNG to EPS.


1 Answers

Most likely, Photoshop is using sRGB (or mayby, CYMK). So you should try:

convert Mbox2.eps \
    -density 300 -quality 100% -colorspace sRGB -flatten Mbox2.sRGB.jpg

convert Mbox2.eps \
    -density 300 -quality 100% -colorspace CMYK -flatten Mbox2.CMYK.jpg

and see if one of your results now is more like you expect it to be.

like image 167
Kurt Pfeifle Avatar answered Sep 24 '22 18:09

Kurt Pfeifle