Skip to content
Advertisement

Tag: rgb

(Linux) Determine Percentage of Different Colors in Image

How can I calculate the percentage of RGB values in an image using Linux? I’ve done some research and it appears that C# and Python may be the way to go. Answer Let ImageMagick generate a histogram for you showing how many pixels there are of each colour, So, say you have have an image called image.jpg, or image.png, like

Convert RBG to CMYK with use of ICC profile in PHP

I am currently building an online APP which allows users to pick a color for text from a usual javascript color picker. I want to convert the returned value to CMYK and I know there is not one simple run-of-the-mill method to achieve this, given there are ICC profiles and all that. I still want to achieve a relatively useful

Advertisement