Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?

From: Date: Fri, 09 Jan 2004 09:50:38 +0000
Subject: Is it possible to see if a jpeg is RGB or CMYK via PHP GD2?
Groups: php.general 
Request: Send a blank email to php-general+get-174096@lists.php.net to get a copy of this message
I'm allowing user to upload images to a gallery. However, some user seem to have both RGB and CMYK jpeg images. I get an error from ImageCreateFromJPEG when the script is creating thumbnails from a CMYK jpeg. Can I somehow see if the image is RGB or CMYK, so I know when to skip the automatic thumbnail creation? Regards, SED

« previous php.general (#174096) next »