Get Dominate CMYK Colours
Is it possible to get Dominate CMYK colour codes from an image that is a CMYK colourspace?
-
Hi,
The "colors" property in the metadata of an image used for analysis of the top and predominant colors uses a fixed palette of RGB colors, and matches the colors in the image to the closest one from the palette.
You can use this for CMYK images also, but the results will show you an RGB color code, so you'll need to convert that to a CYMK equivalent and then store that result in your database or show it in your application (e.g. #FFFFFF in RGB is 0,0,0,0 in CMYK, #AC425F is 0,62,45,33 and so on: https://www.rapidtables.com/convert/color/rgb-to-cmyk.html )
Please let me know if that helps and if there's anything else I can help with
Regards,
Stephen
0
Post is closed for comments.
Comments
1 comment