bashimagemagickmontage

Montage (Image Magic) combine pictures via script


i need a little help to MONTAGE (ImageMagic):

How to combine 300 pictures in two separated folders?

Folder A includes pictures: a_001.png ... a_300.png

Folder B includes pictures: b_001.png ... b_300.png

I would like to combine a_001.png with b_001.png, a_002.png with b_002.png and so on.

How to solve this problem (i have no experience in scripting). I would prefer a small bash-script (linux), if necessary.

Thanks a lot


Solution

  • for i in $(seq -f "%03g" 1 300)
    do
        montage {A,B}/{a,b}_$i.png ab_out_$i.png
    done
    

    What's going on...