Simple montage bash script
Posted: 2012-08-06T17:38:03-07:00
I would like help with creating a simple montage script on one of my Ubuntu machines.
I have a folder of files where the filenames are FILENAMEf.jpg and FILENAMEb.jpg and want each set of files ending in f and b to be combined into one picture using montage.
I can successfully use montage to combine the two pictures by hand using the command: "montage -tile 2x2 -geometry +0+0 FILENAMEf.jpg FILENAMEb.jpg FILENAME.jpg". However, manual input is cumbersome, so I would like to automate this process through a bash script. If possible, it would also be nice to have two scripts, one that keeps the original files and one that deletes them.
Can any ImageMagick wizards help me out?
I have a folder of files where the filenames are FILENAMEf.jpg and FILENAMEb.jpg and want each set of files ending in f and b to be combined into one picture using montage.
I can successfully use montage to combine the two pictures by hand using the command: "montage -tile 2x2 -geometry +0+0 FILENAMEf.jpg FILENAMEb.jpg FILENAME.jpg". However, manual input is cumbersome, so I would like to automate this process through a bash script. If possible, it would also be nice to have two scripts, one that keeps the original files and one that deletes them.
Can any ImageMagick wizards help me out?