Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable DPI Scaling Awareness #2438

Closed
yabbas opened this issue Mar 3, 2017 · 2 comments · Fixed by #4000
Closed

Enable DPI Scaling Awareness #2438

yabbas opened this issue Mar 3, 2017 · 2 comments · Fixed by #4000
Labels
Bug Any unexpected behavior, until confirmed feature. Screen grab Windows
Projects

Comments

@yabbas
Copy link

yabbas commented Mar 3, 2017

What did you do?

Tried to grab a screenshot with pyautogui. This passes control over to Pillow's imagegrab.

What did you expect to happen?

A screenshot of the entire screen.

What actually happened?

The top left corner of the screen (1/4) was saved.

What versions of Pillow and Python are you using?

Python 3.6, Pillow 4.00

Please include code that reproduces the issue and whenever possible, an image that demonstrates the issue. The best reproductions are self-contained scripts with minimal dependencies. If you are using a framework such as plone, django, or buildout, try to replicate the issue just using Pillow.

PIL.ImageGrab.grab(bbox=None)
<PIL.Image.Image image mode=RGB size=1600x900 at 0x132A0D5F898>
# screen resolution is actually 3200x1800

Fix - making the App DPI Aware:
asweigart/pyautogui#33 (comment)

@aclark4life aclark4life added the Bug Any unexpected behavior, until confirmed feature. label Jun 21, 2017
@davePlug
Copy link

This is still an issue...and now is becoming more pressing with even more 4k monitors around

@aclark4life aclark4life added this to Backlog in Pillow May 11, 2019
@aclark4life aclark4life moved this from Backlog to In progress in Pillow May 11, 2019
@aclark4life aclark4life moved this from In progress to Backlog in Pillow May 12, 2019
@radarhere radarhere changed the title Pillow is not aware of Windows DPI Scaling - Fix - Enable DPI Scaling Awareness Enable DPI Scaling Awareness Sep 29, 2019
Pillow automation moved this from Backlog to Closed Sep 30, 2019
@radarhere
Copy link
Member

#4000 has now been merged, using an awareness context of DPI_AWARENESS_CONTEXT_PER_MONITOR_AWARE.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Any unexpected behavior, until confirmed feature. Screen grab Windows
Projects
Pillow
  
Closed
Development

Successfully merging a pull request may close this issue.

4 participants