开发者

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

I need to conv开发者_开发百科ert 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?


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜