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_more0 -
Thank you for this link. Unfortunately I can not see how to detect if the uploaded image is saved as CMYK.
0 -
It's on our roadmap to support detection of CMYK/RGB. We will update once it's available.
0 -
UPDATE - You can now get the
colorspaceinformation together with the image metadata. To get the image metadata please setimage_metadatatotrueon the upload API, or by getting details of a single resource on the Admin API.0 -
Your are awesome!! Thank you!
0
Post is closed for comments.
Comments
5 comments