I have an image that is rejected by the eBay API because of this:
<ShortMessage>Source picture uses an unsupported colorspace.</ShortMessage>
<LongMessage>Pictures with a CMYK colorspace are not supported; source pictures must use a RGB colorspace compatible with all web browsers supported by eBay. Submit pictures created using a camera or scanner set to save images with RGB color.</LongMessage>
Well, I did not suspect that it was CMYK, and I donβt even know how to say it. Then I used the following code to try to convert:
$image= "$img.jpg";
$i = new Imagick($image);
$i->setImageColorspace(Imagick::COLORSPACE_SRGB);
$i->writeImage($image);
$i->destroy();
It converts (and is now accepted by eBay), but also inverts the colors of the image. Why do this and is there more COLORSPACEI should use?
Thank.
source
share