occivink / mpv-image-viewer

Configuration, scripts and tips for using mpv as an image viewer
The Unlicense
284 stars 23 forks source link

request for showing pixel value and position infomation #20

Open woshin opened 3 years ago

woshin commented 3 years ago

can we have a function that show the value and position infomation of a pixel that cursor point to?

occivink commented 3 years ago

By position information, do you mean the x/y coordinates? That should be possible. However, I don't think querying the pixel values will be possible without some crazy workaround (sadly).

woshin commented 3 years ago

yes, position information means x/y coordinates. thank you for your answer, i will close the issue.

occivink commented 3 years ago

I'll keep this open, thinking about it it might not be impossible

hooke007 commented 2 years ago

So far impossible only via mpv itself. https://github.com/mpv-player/mpv/issues/10214

occivink commented 2 years ago

Yes. My idea was to take a screenshot to a temporary location and sample the pixel information from there