image - Python Imaging Library fails to grab whole screen -



image - Python Imaging Library fails to grab whole screen -

i using pil grab screen shot, capturing part of screen.

here screen shot of desktop

and programme captures

as can see, screen has amount of space chopped off on side , along bottom. tried right adjusting size of capture zone, resulted in areas filled black

i'm thinking there limit maximum resolution library can capture, cant find documentation saying so.

below code

import imagegrab import os import time def screengrab(): box = (0, 0, 1920, 1080) im = imagegrab.grab(box) im.save(os.getcwd() + '\\screenshot_' + str(int(time.time())) + '.png', 'png') def main(): screengrab() if __name__ == '__main__': main()

dose know how prepare issue or know why happening?

i having problem before today. script capture pixels 0,0 - 1536,864. switched windows 8 , noticed programs seemed displayed @ wrong resolution. after searching found fix.

go python directory (c:/python27/ me) right click python.exe , select properties select compatibility tab press "change settings users" button check "disable display scaling on high dpi settings" box imagegrab capture entire resolution

i'll update if find universal fix, thought i'd post here since searched hr or , couldn't find solution.

edit:

universal fix

right click desktop select "screen resolution" click on "make text , other items larger or smaller" check "let me take 1 scaling level displays" select "smaller - 100%"

this result smaller sharper text , icons.

python image python-2.7 python-imaging-library

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -