开发者

Color is wrong when converting CMYK images to RGB using imagemagick

开发者 https://www.devze.com 2023-03-30 20:14 出处:网络
I had a bunch of images uploaded as cmyk and I needed to convert them to rgb. I used the line exec(\"convert -colorspace RGB \" . $myfile . \" \" . $myfile);

I had a bunch of images uploaded as cmyk and I needed to convert them to rgb.

I used the line

exec("convert -colorspace RGB " . $myfile . " " . $myfile);
But the color is way off (example, a brownish color looks greenish).

I'm not sure why it's doing 开发者_JAVA技巧this.


Try using this instead:

-colorspace sRGB
0

精彩评论

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