Image Pairs
Posted: 2012-07-24T04:59:07-07:00
Hello everybody!
I was wondering if anyone could help me with a question regarding the montage command for pairing images for an experiment. I would very much like to batch-concatenate images from two categories horizontally (1101_*.jpg and 1102_*.jpg). My question is how I could get Imagemagick to pick e.g 1101_001.jpg and 1102_001.jpg and store the composite image as 1101_001_1102_001.jpg and so forth. Essentially what I would need is to concatenate the two images and the two original image names into one image with a composite filename. The only viable solution, which is pretty greenhornish, I could come up with so far is :
>montage -mode concatenate -tile 2x1 image_*.jpg *.jpg
Would be very grateful for any kind of advice or reference to the imagemagick.org site. Many thanks in advance!
Alvin
I was wondering if anyone could help me with a question regarding the montage command for pairing images for an experiment. I would very much like to batch-concatenate images from two categories horizontally (1101_*.jpg and 1102_*.jpg). My question is how I could get Imagemagick to pick e.g 1101_001.jpg and 1102_001.jpg and store the composite image as 1101_001_1102_001.jpg and so forth. Essentially what I would need is to concatenate the two images and the two original image names into one image with a composite filename. The only viable solution, which is pretty greenhornish, I could come up with so far is :
>montage -mode concatenate -tile 2x1 image_*.jpg *.jpg
Would be very grateful for any kind of advice or reference to the imagemagick.org site. Many thanks in advance!
Alvin