Full Version: Can gimp-image-pick-color return Alpha?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
It seems thatĀ gimp-image-pick-color returns only a 3-tuple even for an RGBA image
Is there a way to provoke it to report all four components?
(or average all four in a radius)

Googling, I find that the GUI color picker will display all the values if you hold SHIFT...
But I need to know if a pixel is transparent from within a script.
If you need to know for a pixel, use pdb.gimp_drawable_get_pixel(drawable,x,y) that returns 4 values (if there is an alpha channel). Note that this doesn't take in account the layer mask, if any.
Thanks, that does the needful.