ponty / pyscreenshot

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

Screenshot of 3D Application is stale on Windows Server 2016 via RDP/console #42

Closed zstyblik closed 5 years ago

zstyblik commented 7 years ago

Hello,

setup is as follows:

I start user session via RDP and start 3D application. I have a small Py script which snaps screenshots in regular intervals via ImageGrab.grab().

Once RDP connection is closed, session is attached to console in order to keep screenshots going, otherwise they cannot be grabbed and exception occurs. This works as system clock changes/progresses in pictures. However, as for 3D application, there is a still "image" from the very last time when the connection via RDP was active. This recovers once RDP connection is established again.

I don't know whether this is Windows, pyscreenshot or Pillow problem and any help will be appreciated.

Thank you.

ponty commented 7 years ago

If you are Windows user then you don't need pyscreenshot. Just use ImageGrab.grab() from Pillow. Pyscreenshot is just a wrapper around backends like Qt, GTK, Imagemagick,... (see the documentation: http://pyscreenshot.readthedocs.io/en/latest/#hierarchy)

zstyblik commented 7 years ago

@ponty, you're correct and that's what I'm using. Other libraries are either pain to install or next to impossible to setup under virtualenv. Having said that, I must agree that problem(bug) most likely isn't in pyscreenshot. Still, would be nice to know what/why/how. :)

Anyway, feel free to close this issue :-s

EDIT: btw thank you for reply and pyscreenshot.