ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.
BSD 2-Clause "Simplified" License
502 stars 88 forks source link

Any thoughts about captureing multiple screens? #48

Closed Nriver closed 4 years ago

Nriver commented 6 years ago

Here is the situation, I got more than one screen connected to my computer. And I can not capture the second screen with pyscreenshot. Tried to use coordinates outside the first screen, but only get blackout where I thought there will be the second screen's picture.

phanirithvij commented 6 years ago

ImageGrab does that but it's not for linux. I have the same issue.

ponty commented 5 years ago

Please add more details!

All back-ends work with my setup:

grab(bbox=(500, 400, 2800, 600)

Full screen also works:

python -m pyscreenshot.examples.showgrabfullscreen
v-ko commented 5 years ago

Referencing the coordinates works in specific cases, but it would be a nice option to target screens by index, since e.g. laptop +/- monitor setup are pretty common (where the setup changes frequently). That implies having a function to retrieve screen information (bboxes for all available screens). And I don't know if that's in the scope of pyscreenshot.

ponty commented 5 years ago

Screen indexing is a different topic. I don't know if it is possible at all.

v-ko commented 5 years ago

It's possible on some platforms, Qt has the functionality on linux, but then again it's tricky in other cases. Thanks for the reply