screenshot-desktop
screenshot-desktop copied to clipboard
Take a screenshot of certain portion of the screen
Hi, I trying to take only certain portion of my screen. To reduce the size of the file, and the content within the reason is that i will be sending this picture to google vision api, which will process it and send back the info i need without having it be distracted with other windows, and other contents in the picture.
This is possible on some platforms although no friendly api available through this module currently a pull-request implementing it would be very welcome!
e.g. win32 function ... https://github.com/bencevans/screenshot-desktop/blob/1f1beaa689875815f686c93e10314280fd0d1f07/lib/win32/screenCapture_1.3.2.bat#L71
+1 for this, I imagine it would increase performance as well?
+1 from me as well. I can see it's available for darwin because there is an option -R<x,y,w,h> capture screen rect
. Also, another performance gain would be the possibility to return the buffer (via stdout), instead of writing to disk (presumably followed by subsequent read), but this is probably another issue. Thank you!
+1
Any updates on this?
any other library for this purpose?