Set "Show thumbnails" switch on in SikuliX IDE, Pattern.resize() is deleted.

Asked by masuo on 2018-07-04

Set "Show thumbnails" switch off and edited the code.
find(Pattern("1530728878198.png").resize(0.8)).highlight(1)

Set "Show thumbnails" switch on, Pattern.resize() is deleted.
find("1530728878198.png").highlight(1)

OS: Windows10
SikuliXIDE: 1.1.3(2018-06-28_3:00)

Question information

Language:
English Edit question
Status:
Solved
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Solved by:
RaiMan
Solved:
2018-07-08
Last query:
2018-07-08
Last reply:
2018-07-06
RaiMan (raimund-hocke) said : #1

thanks for finding.

I kew that somewhere deep inside will be some offending code - you got it ;-)

I will make it a bug and fix it asap.

RaiMan (raimund-hocke) said : #2

made a bug and fixed it

masuo (masuo-ohara) said : #3

I checked on SikuliXIDE 1.1.3(2018-07-05_16:27).
SikuliX IDE still removed Pattern.resize().

Best RaiMan (raimund-hocke) said : #4

Just tested - pricipally works:
Pattern("someimage.png").resize(0.5)
or
Pattern(image).resize(0.5)

if the value is not a valid float number or if it is 0 or 1, resize() is indeed ignored.

I found some minor glitches, so I will revise it again.

masuo (masuo-ohara) said : #5

When I tried SikuliX IDE Nightly build 33, I used the argument incorrectly.
So SikuliX IDE removed Pattern.resize().

I noticed how to use the argument.
Today I tried SikuliX IDE Nightly build 34.

I notice that when Pattern.resize() setting is used in SikuliX IDE, light purple indicator appear on image.

I notice that matching preview feature and "Show" feature use last resize setting.
Before use matching preview and "Show" feature, I have to set resize setting to default .

masuo (masuo-ohara) said : #6

Thanks RaiMan, that solved my question.

RaiMan (raimund-hocke) said : #7

Thanks for checking and confirmation.
All the best