I want to grab the color of a pixel with known coordinates on my Linux desktop.
Until now, I've used "import -window SomeWindow -crop 1x1+X+Y /tmp/grab.jpg"
then extracting the pixel value using Python and PIL.
This does the job, but since import grabs the whole window before cropping, it's very slow :(
Are there any clever way to grab the color of only one pixel? I know both relative (window) and absolute coordinates.
A Python or shell script would be preferable, but if you know some clever C/X11 functions, also please let me know :)