Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am looking for a simple tool that will let me read the RGB and alpha (A) values of a pixel in an image.

Something like DigitalColor meter but that returns alpha values.

I know this is possible in photoshop but I am looking for a lightweight solution.

share|improve this question

1 Answer 1

Mac OS X has ImageMagick, right?

$ convert Downloads/photo.png -crop 1x1+9+96 txt:-
# ImageMagick pixel enumeration: 1,1,255,rgba
0,0: (  0, 74,117,251)  #004A75FB  rgba(0,74,117,0.984314)

The idea is to crop around a specific pixel, then output it to the special txt: format, with an output file name of - which is of course standard output.

You can leave out the the -crop 1x1+X+Y business to just get a listing of all pixels. Also note that you image must have an alpha channel for this to work, otherwise it just won't get included.

share|improve this answer
    
thanks but i am looking for a graphic tool. although this looks cool if you are scripting it would be cumbersome otherwise. something like an eyedropper tool would be ideal. –  numan Apr 18 '12 at 21:19

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.