How do I get the RGB values of the average color of an image, where each value is 0-255? Such as \"255,255,255\"
I run this command to shrink the image down and it
You can do the following to parse out just the comma-separated RGB values. It also will not return text color names.
convert cat.png -resize 1x1\! \
-format "%[fx:int(255*r+.5)],%[fx:int(255*g+.5)],%[fx:int(255*b+.5)]" info:-
Output format should look like:
155,51,127
This should work in ImageMagick 6.3.9.1+