Check if image is RGB or CMYK color format

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
Sindarin
Forum Regular
Posts: 521
Joined: Tue Sep 25, 2007 8:36 am
Location: Greece

Check if image is RGB or CMYK color format

Post by Sindarin »

From time to time, some client will upload a photo in his cms that is in CMYK color format and the image will not show up in the browser.
Is there any way to check if an image is RGB or CMYK format with php?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Check if image is RGB or CMYK color format

Post by requinix »

Take a good look at getimagesize.
Post Reply