Can Sikuli utilize scaling images between computers with different resolutions?

Asked by Benjamin Zumwalt on 2017-03-15

Hello,

I had at one point tried utilizing Sikuli as an automation tool. The only problem I had at the time was that every time I would change the resolution of my screen or try to run the script on a different computer the Images wouldn't scale to match the currently used resolution and I ultimately re-created each image when this would happened.

My question is does Sikuli support Image Scaling now and if so is it automatic scaling or is there a certain way to get the images to Scale and Match?

I am a Non-Coder but I test the code being produced at my organization so utilizing this tool could be really beneficial for our team.

Any help would be appreciated. Thank you for your time.

~Ben~

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
Benjamin Zumwalt
Solved:
2017-03-17
Last query:
2017-03-17
Last reply:
2017-03-17
RaiMan (raimund-hocke) said : #1

Not really a feature in version 1.1.x.

Better support for these cases will be available in version 2 (does not help you now ;-)

Currently the only safe solution is to have different image sets for each different environment and use the image path feature to switch image sets according to the current situation.

In version 1.1.1 the class Image has a resize() method, that can be used to create a resized version of an Image with a given decimal factor ... but might not be the way to get out of the trap for a non-coder ;-)

Benjamin Zumwalt (ben.zumwalt) said : #2

Do you know of a date or have a timeline for the release of version 2.0?

Thanks,
Ben

RaiMan (raimund-hocke) said : #3

pre-versions will be available beginning in second quarter.

... but what you are looking for will have to wait until late summer. Sorry.

Benjamin Zumwalt (ben.zumwalt) said : #4

Thanks for all of your help. this is what I needed.

Thanks,
Ben