Question #259459 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/259459

    Status: Open => Answered

RaiMan proposed the following answer:
What Eugene suggests is simply to enlarge or shrink a given set of
images to a target resolution using an image processing tool, that can
do one or more actions on a set of images (called batch mode, e.g. all
images in one folder). The suggested tool is IrfanView, which can be
freely downloaded from the net and runs  on Windows.

But this is only a convenience method in the special case, where simple
resizing works.

In general the approach in this case is:
---- preperation
- for each resolution have a set of images
- each set should be stored in a different folder
- each image with the same content in the different folders should have the 
same name

---- usage at runtime
- at the beginning detect or set the resolution somehow (many ways to do that 
;-)
- according to the given resolution select the correct image folder and use 
setBundlePath() or addImagePath(), to make sure, the script now uses the images 
from the correct set

with this approach you can use the same script with no modification with
all resolutions, that you have prepared before with an image folder.
Except at the beginning, there is no resolution specific code needed.

If suitable, then a tool like IrfanView can help to reduce the effort in
the preparation step, since you might save the time to shoot all images
again for a different resolution (if simple resizing works).

-- 
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.

_______________________________________________
Mailing list: https://launchpad.net/~sikuli-driver
Post to     : sikuli-driver@lists.launchpad.net
Unsubscribe : https://launchpad.net/~sikuli-driver
More help   : https://help.launchpad.net/ListHelp

Reply via email to