automatically append jpg files
Posted: 2017-12-18T07:11:39-07:00
Hello,
I have a bit of a problem I am not able to tackle using shell commands on Linux (IM Version 6.8.9-9 016 x86 64).
I have to download several book pages from a server where they are each split into 6 jpgs (3x2 cells per page). I downloaded them, naming each cell per page 1a.jpg, 1b.jpg, ... 1f.jpg, 2a.jpg ... 2f.jpg etc. until 50a.jpg ... 50e.jpg.
Now I want to append these cells to have a single jpeg for each page.
I can do this for one page by using
However, I am not able to do this automatically for all 50 pages (input 1a-e.jpg to 50a-e.jpg output 1.jpg to 50.jpg). I don't really get how to set up the variables for the file names correctly.
Any help would be very much appreciated.
I have a bit of a problem I am not able to tackle using shell commands on Linux (IM Version 6.8.9-9 016 x86 64).
I have to download several book pages from a server where they are each split into 6 jpgs (3x2 cells per page). I downloaded them, naming each cell per page 1a.jpg, 1b.jpg, ... 1f.jpg, 2a.jpg ... 2f.jpg etc. until 50a.jpg ... 50e.jpg.
Now I want to append these cells to have a single jpeg for each page.
I can do this for one page by using
Code: Select all
convert \( 1a.jpg 1b.jpg 1c.jpg +append \) \( 1d.jpg 1e.jpg 1f.jpg +append \) -append 1.jpg
Any help would be very much appreciated.