slwr
slwr

Reputation: 1175

Combining pictures with timestamp

I have multiple pictures defined with timestamp, for instance:

face-01.jpg
face-02.jpg
...
screen-01.jpg
screen-02.jpg
...

I need to merge the "face" pics with the "screen" ones using "montage" command of imagemagik. Any suggestion?

montage -mode concatenate -tile 1x face-01.jpg screen-01.jpg

Upvotes: 1

Views: 193

Answers (1)

dogbane
dogbane

Reputation: 274582

You can use the following loop to create montages of corresponding face/screen images.

for face in face*
do
   montage "$face" "screen-${face//[^0-9]/}.jpg" -mode Concatenate -tile x1 "montage_${face}"
done

Upvotes: 2

Related Questions