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