使用imagemagick将CMYK图像转换为RGB时颜色错误


Color is wrong when converting CMYK images to RGB using imagemagick

我上传了一堆cmyk格式的图片,我需要把它们转换成rgb格式。

我用了这句话

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 this.

Try using this instead:

-colorspace sRGB