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
精彩评论