Is there a simple way to detect if an image is CMYK other than using Image Magick?
[RESOLVED] Detect CMYK
I looked here:
http://us.php.net/gd
It would seem like a no, even for ImageMagick. The problem is the image uploads, and then doesn't display on the site. The filesize is there, but if I go to open it in a browser I get an error message typed out in an image generated by the server. I know in MySpace it shows "An unknown error has occured" if you try CMYK. Any clues to how to detect? As I am typing this I think imagecreatefromjpg would fail... I'm gonna go try that.
imagecreatefromjpg did not return false. On top of that, if I use GD to remake the image as if making a thumbnail, it automatically converts the cmyk to rgb, thus messing up the colors horribly. without using gd to convert anything, the image cannot be displayed. i don't want to accept any cmyk though because the image just looks messed up color-wise from conversion.
I hunted some more and found on Facebook, which is written in PHP, does not know the difference. I suppose it can't be done. On Facebook it says successful and then just has a broken image.