Stitching Image Set Together

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
FlintLuck
Posts: 3
Joined: 2018-02-27T02:49:41-07:00
Authentication code: 1152

Stitching Image Set Together

Post 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
snibgo
Posts: 12159
Joined: 2010-01-23T23:01:33-07:00
Authentication code: 1151
Location: England, UK

Re: Stitching Image Set Together

Post 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.
snibgo's IM pages: im.snibgo.com
User avatar
GeeMack
Posts: 718
Joined: 2015-12-01T22:09:46-07:00
Authentication code: 1151
Location: Central Illinois, USA

Re: Stitching Image Set Together

Post 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?
FlintLuck
Posts: 3
Joined: 2018-02-27T02:49:41-07:00
Authentication code: 1152

Re: Stitching Image Set Together

Post 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
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Stitching Image Set Together

Post by fmw42 »

What about using montage

Code: Select all

montage *.jpg -tile 27x9 -geometry +0+0 result.jpg
FlintLuck
Posts: 3
Joined: 2018-02-27T02:49:41-07:00
Authentication code: 1152

Re: Stitching Image Set Together

Post by FlintLuck »

Ha, it was really that simple. Thank you so much!!
Post Reply