Does sikuli work with .jpg

Asked by Alessandro Zuniga

I'm running on RHEL using Twist with sikuli. I am trying to find on screen a .jpg with .99 similarity. screen.exists(Pattern, Similarity) and even though the image is not on the screen it seems like it still finds it. Is this a problem with jpg's? I don't know if Sikuli is supposed to work with jpg's.

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

jpg's should work, but they are not thumbnailed in the IDE, so Preview does not work either.

--- screen.exists(Pattern, Similarity)

is not really Sikuli ;-)

This should be:

screen.exists(Pattern("xyz.jpg").similar(0.99))

Can you help with this problem?

Provide an answer of your own, or ask Alessandro Zuniga for more information if necessary.

To post a message you must log in.