Page 1 of 1

Stitching Image Set Together

Posted: 2018-02-27T03:03:08-07:00
by FlintLuck
I have tried to do this myself and searched the forums for about an hour looking for the correct solution, but my efforts have been fruitless.

I have 243 images, each 256x256px that when combined make one larger gigapixel style image. I don't need anything other than a command to combine them into 9 rows and 27 columns. Well, I don't want any borders. It should be seamless, so that might require a command.

Their naming sequence is in a single directory and per row is ordered as follows

1st row: 0000-0000.jpg - 0000-0026.jpg
2nd row: 0001-0000.jpg - 0001-0026.jpg
... all the way to ...
9th row: 0008-0000.jpg - 0008-0026.jpg

Any help would by greatly appreciated.

To make it more simple, here's a shot of what it looks like just using Explorer to resize them.
Thank you!Image

Re: Stitching Image Set Together

Posted: 2018-02-27T03:47:18-07:00
by snibgo
What version of IM? What script language?

You could do it in a pair of nested "for" loops, to build lists of input images.

Re: Stitching Image Set Together

Posted: 2018-02-27T07:48:42-07:00
by GeeMack
FlintLuck wrote: 2018-02-27T03:03:08-07:00I have 243 images, each 256x256px that when combined make one larger gigapixel style image. I don't need anything other than a command to combine them into 9 rows and 27 columns. Well, I don't want any borders. It should be seamless, so that might require a command.
To assemble all the input images into one output image, 27 wide by 9 high, and if the images don't require shaving any borders or edges, you could run a single command like this...

Code: Select all

 
convert *.jpg +append -crop 9x1@ -append output.png
If the images have borders that need to be trimmed, adding some appropriate "-shave" or "-chop" operators before the first "+append" could resolve that. Can you provide an original of one of the starting images?

Re: Stitching Image Set Together

Posted: 2018-02-27T12:06:15-07:00
by FlintLuck
I'm using Python for the script and ImageMagick-7.0.7-24-Q16-x64-dll

Here's a full size image of one of the blocks
Image

Re: Stitching Image Set Together

Posted: 2018-02-27T12:36:40-07:00
by fmw42
What about using montage

Code: Select all

montage *.jpg -tile 27x9 -geometry +0+0 result.jpg

Re: Stitching Image Set Together

Posted: 2018-02-27T17:46:36-07:00
by FlintLuck
Ha, it was really that simple. Thank you so much!!