ponty / pyscreenshot

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

Image is black when bbox is used #83

Closed mgalgs closed 3 years ago

mgalgs commented 3 years ago

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?

mgalgs commented 3 years ago

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