sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #57620
[Bug 1927536] Re: Screenshot function / Windows Resolution Scaling
** Changed in: sikuli
Status: New => In Progress
** Changed in: sikuli
Importance: Undecided => Wishlist
** Changed in: sikuli
Assignee: (unassigned) => RaiMan (raimund-hocke)
** Changed in: sikuli
Milestone: None => 2.0.6
--
You received this bug notification because you are a member of Sikuli
Drivers, which is subscribed to SikuliX.
https://bugs.launchpad.net/bugs/1927536
Title:
Screenshot function / Windows Resolution Scaling
Status in SikuliX:
In Progress
Bug description:
I've seen a bunch of incorrect isolation concerning this issue. I've
seen posts where the screenshot function shows a different resolution
than expected. I've seen posts where people note they're using a 4k
display, which also isn't a factor to this issue and some that report
it without a clue as to any of the causes.
Basically, the issue is that the screenshot function uses a straight
value for resolution in the Sikuli IDE. Windows has a scaling
function that actually adjusts the displayed resolution based upon the
scaling value selected. This means that the screenshot function's
resolution value is always going to display the wrong area for the
display when scaling is involved.
Here are some screenshots of how the screenshot function functions at
different scaling:
https://ibb.co/drQLGhr - 125%
https://ibb.co/xshHg2C - 150%
https://ibb.co/7C06Ny4 - 175%
I guess my question is, would someone change the way the screenshot
function gets it's value for resolution? Like, have it get the
resolution value and the scaling value and calculate a final value for
it to use?
This issue can be reproduced on any PC with Windows. You simply
change your display resolution scaling and trigger the screenshot
function. If it's difficult to find the location of where this
setting is in windows, you can hit Win+R and type in: control
desk.cpl and hit enter to bring up the right location or right click
on the wallpaper area and pick display settings.
To manage notifications about this bug go to:
https://bugs.launchpad.net/sikuli/+bug/1927536/+subscriptions
References