Do not resize macOS retina screenshots by default#9266
Do not resize macOS retina screenshots by default#9266radarhere wants to merge 8 commits intopython-pillow:mainfrom
Conversation
8c231e7 to
ca6c75b
Compare
ca6c75b to
6d51ace
Compare
eeaa8cd to
3dc1937
Compare
3dc1937 to
be85a6b
Compare
be85a6b to
5b1a3ae
Compare
|
Just a thought: rather than tacking on a bool |
|
In main, If we change that to The only way I think Instead, I've pushed a commit to improve the screen scaling detection, so that if Apple releases 4x in the future, the default will start capturing 4x. |
Resolves #9253
On macOS retina screens,
ImageGrab.grab()will produce 2x images when not usingbbox, but 1x images when usingbbox. The issue describes this as inconsistent.Scaling bounding box images down was added in #6152 with Pillow 9.1.0, so that is relatively new. This PR stops that resizing by default. If the user wishes to resize, they must provide a keyword-only argument,
ImageGrab.grab(scale_down=True)