CMYK RGB detection
Hi! I try to detect if an image file is CMYK or RGB. I need to check uploaded files for printability. I used to do this simply with PHP (getimagesize) checking the channels. But I could not find a simple way to get this with uploaded files on Cloudinary. I was trying to get this information within the 'image_metadata'. But there are no save or default key/values for the color mode. I can parse all values for specific strings - but that's just a dirty and inaccurate hack. Any ideas to this issue?
-
Please read the following article which might help you:
http://cloudinary.com/blog/api_for_extracting_semantic_image_data_colors_faces_exif_data_and_more -
UPDATE - You can now get the
colorspace
information together with the image metadata. To get the image metadata please setimage_metadata
totrue
on the upload API, or by getting details of a single resource on the Admin API.
Post is closed for comments.
Comments
5 comments