See IM examples, Quantization and Dithering, extracting image colors
http://www.imagemagick.org/Usage/quantize/#extract
It first talks about all the colors, but then goes to methods for getting the
color of a specify
pixel.
The best way from command line is to either use a -format FX/
Pixel escape to
get a specific
pixel values, or to crop the image down to just that one
pixel and then use format or txt: output.
Code: Select all
convert rose: -format '%[pixel:p{40,30}]' info:-
rgb(232,54,58)
Code: Select all
convert rose: -crop 1x1+40+30 -depth 8 txt:
# ImageMagick pixel enumeration: 1,1,255,rgb
0,0: (232, 54, 58) #E8363A rgb(232,54,58)