Get Dominate CMYK Colours


1 comment

  • Avatar
    Stephen Doyle


    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: )

    Please let me know if that helps and if there's anything else I can help with




    Comment actions Permalink

Please sign in to leave a comment.