Use txt: output to get the hex values. For example, using the IM 
internal image rose:, you can get the following.

convert rose:[1x1+0+0] txt:
# ImageMagick pixel enumeration: 1,1,255,rgb
0,0: ( 48, 47, 45)  #302F2D  rgb(48,47,45)

Now just extract the hex value.

In Unix, (I don't know Windows batch commands), I would use sed as follows:

convert rose:[1x1+0+0] txt: | tail -n 1 | sed -n 
's/^.*[\#]\([\0-9A-Fa-f]*\).*$/\#\1/p'
#302F2D


_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to