Does Sikuli handle scaling of images?

Asked by Will P

Is there a way to tell Sikuli, "click something that matches this image, but scale the image 2x or .5x first"?

I'm looking at automating events in the iphone simulator. Running on the iphone vs. iphone4 vs. ipad all use very similar icons and UI, but they have different resolutions.

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

No (not yet ;-), you have to have images seperate for each environment, if their pixel resolution differs.

You can try to use ImageMagick to automate this process from inside the script, in cases where it is really only a scaling that has to be done (some hints in my HowTo https://answers.launchpad.net/sikuli/+question/1239459)

Revision history for this message
Will P (wphan) said :
#2

Thanks for the answer, RaiMan. Could you update the link that you sent? It doesn't exist for me.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

seems to be a typing error when I added the closing bracket --- same key as number 9 on german keyboard ;-)
https://answers.launchpad.net/sikuli/+question/123945

Can you help with this problem?

Provide an answer of your own, or ask Will P for more information if necessary.

To post a message you must log in.