ponty / pyscreenshot

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

Screenshots are cut off if windows scaling is used #63

Closed kyl3r92 closed 4 years ago

kyl3r92 commented 5 years ago

If I set my scaling to 125% (1440p monitor) the image is cut off on the right side. A few hundred pixels. If I change this setting to 100% it captures the whole screen as expected.

If I use the parameters:

    # part of the screen
    im = ImageGrab.grab(bbox=(0, 0, 3000, 3000)) # X1,Y1,X2,Y2
    im.show()

It will only grab additional black pixels, the missing parts do not show up. I would expect the screenshot to grab the correct part of the image.

ponty commented 5 years ago

Please provide more information: OS, Python version, log.

Turn on logging:

import logging
logging.basicConfig(level=logging.DEBUG)