ponty / pyscreenshot

Python screenshot library, replacement for the Pillow ImageGrab module on Linux.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Image is black when bbox is used

mgalgs opened this issue · comments

I get good images when I do a full screen grab via ImageGrab.grab(), but if I add a bbox (ImageGrab.grab(bbox=bbox)) the resulting image (when saved with im.save('/tmp/myimage.png')) is just all black pixels (though of the correct dimensions).

I'm using pyscreenshot v2.2 on Manjarao Linux running X11 and scrot. Any other details I can provide to help troubleshoot?

Switched to maim and now it's working! Closing since this doesn't appear to be related to pyscreenshot.