You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a large screen and i customed my win10 screen zooming on 125% , then i find that the function "ImageGrab" cannot work correctly,
What did you expect to happen?
I want get a screenshot of fullscreen, but it gave me part of it
What actually happened?
First I used default parameters,the function should have been given me a 1080p picture as my screen resolution, but only a 864p one, just topleft part of my screen. then i used some parameters in order to force set the function to give me screenshot on 1080p but the result is a picture seem like previous 864p picture with terrible black bar on right and below
it is obvious that 864p*125% =1080p, i think the reason caused this problem may concerned about the customed zooming of windows.
radarhere
changed the title
“ImageGrab” cannot get correct resolution screenshot while win10 customed zooming
ImageGrab cannot get correct resolution screenshot while win10 customed zooming
May 2, 2019
radarhere
changed the title
ImageGrab cannot get correct resolution screenshot while win10 customed zooming
ImageGrab cannot get correct resolution screenshot for Windows 10 zoom
May 4, 2019
What did you do?
I have a large screen and i customed my win10 screen zooming on 125% , then i find that the function "ImageGrab" cannot work correctly,
What did you expect to happen?
I want get a screenshot of fullscreen, but it gave me part of it
What actually happened?
First I used default parameters,the function should have been given me a 1080p picture as my screen resolution, but only a 864p one, just topleft part of my screen. then i used some parameters in order to force set the function to give me screenshot on 1080p but the result is a picture seem like previous 864p picture with terrible black bar on right and below
it is obvious that 864p*125% =1080p, i think the reason caused this problem may concerned about the customed zooming of windows.
What are your OS, Python and Pillow versions?
Origin code:
Code can work correctly
I find another way to get my screenshot by use WinAPI,it is fast and always work correctly, code is here, hope helpful
The text was updated successfully, but these errors were encountered: