开发者

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

开发者 https://www.devze.com 2022-12-25 03:11 出处:网络
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 i

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

精彩评论

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