← Back to team overview

sikuli-driver team mailing list archive

[Question #289543]: Combine Images Side by Side

 

New question #289543 on Sikuli:
https://answers.launchpad.net/sikuli/+question/289543

Don't know where to ask this question so just hoping someone can help
before I show where I am failing maybe my solution is wrong anyway
Objective - in Sikuli have saved 4 images by using :-
shutil.move(img, os.path.join(screenshotsDir, my_file))
so I have 4 images now I want to combine them side by side
Any Solutions ?

My Attempt using ImageMagik:-
    cmd = "PATH=/opt/local/sbin:$PATH"+"\n"
    cmd = cmd + "PATH=/usr/bin:$PATH"+"\n"
    cmd = cmd + "PATH=/usr/sbin:$PATH"+"\n"
    cmd = cmd + "PATH=:/bin:$PATH"+"\n"
    cmd = cmd + "PATH=/usr/sbin:$PATH"+"\n"
    cmd = cmd + "PATH=/opt/X11/bin:$PATH"+"\n"
    cmd = cmd + "PATH=/opt/local/bin/:$PATH"+"\n"

    cmd = cmd +"convert +append " + TSCa + " "
    cmd = cmd + TSCb + " "
    cmd = cmd + TSCc + " "
    cmd = cmd + TSCd + " "
    cmd = cmd + my_file
    print "Command"
    print cmd
    print "Command"    
    output = run("env")

result :-
convert": error=2, No such file or directory
9999
*****error*****
java.io.IOException: Cannot run program "PATH=/opt/local/sbin:$PATH
PATH=/usr/bin:$PATH
PATH=/usr/sbin:$PATH
PATH=:/bin:$PATH
PATH=/usr/sbin:$PATH
PATH=/opt/X11/bin:$PATH
PATH=/opt/local/bin/:$PATH
convert": error=2, No such file or directory*****error*****


-- 
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.