[request] IDE should support ImagePath: displaying thumbnails and storing images

Bug #1412533 reported by Phillip
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
SikuliX
In Progress
Medium
RaiMan

Bug Description

SikuliX version 1.10 (2015-01-16_01:00nightly build)
32-bit Windows XP VM with JRE 7

I have developed some scripts that use a shared image directory. One script is imported by the others and uses ImagePath.setBundlePath("\path\to\shared\img\dir"). All images are referred to by name with no path in the scripts.

All of the script run fine both from the IDE and cmd shell. However, none of the image thumbnails are displayed in the IDE or generated HTML. Newly generated images are always placed in the working directory of the script.

One of the big advantages of using the IDE is being able to visually check image matches in your current screen. It would be nice to be able to do this using shared images. For now, one has to copy the images back to the current directory.

Ideally, the IDE would use ImagePath and display the first image found in that path regardless if it was the first path entry. That way ImagePath.add could be used as well). Newly created images would go to the first entry in ImagePath.

Tags: ide
Revision history for this message
RaiMan (raimund-hocke) wrote :

is on the list for version 2

Changed in sikuli:
status: New → In Progress
importance: Undecided → High
assignee: nobody → RaiMan (raimund-hocke)
milestone: none → 2.0.0
summary: - IDE does not appear to use ImagePath for displaying thumbnails
+ [request] IDE should support ImagePath: displaying thumbnails and
+ storing images
Revision history for this message
Phillip (phillip-warner-afit) wrote :

Thank you for the quick response, RaiMan!

I wanted to also mention a side effect of the subject issue. If you use ImagePath.setBundlePath instead of imagePath.add newly created images will work fine in the IDE, but they will *not* load properly when running from the cmd shell.

Bottom line, it is safer to use add() instead.

Thanks again!

Revision history for this message
RaiMan (raimund-hocke) wrote :

yep, this is still not consistent all over the place - still too many places ;-)

RaiMan (raimund-hocke)
Changed in sikuli:
milestone: 2.0.0 → 2.0.1
milestone: 2.0.1 → 2.1.0
RaiMan (raimund-hocke)
Changed in sikuli:
importance: High → Medium
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.