screenshot-desktop icon indicating copy to clipboard operation
screenshot-desktop copied to clipboard

Take a screenshot of certain portion of the screen

Open Optimusprimeagario opened this issue 6 years ago • 6 comments

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.

Optimusprimeagario avatar Nov 11 '18 16:11 Optimusprimeagario

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

bencevans avatar Nov 22 '18 19:11 bencevans

+1 for this, I imagine it would increase performance as well?

mattb290 avatar Jan 06 '19 00:01 mattb290

+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!

ggrg avatar May 25 '19 15:05 ggrg

+1

kkm avatar Nov 25 '19 22:11 kkm

Any updates on this?

Nisgrak avatar Jan 13 '21 21:01 Nisgrak

any other library for this purpose?

ufukomer avatar Mar 26 '23 05:03 ufukomer