how do I merge an array of images into a single giant image?

7

4

I have 220 png images of equal height and width with the following naming convention:

A1.png, A2.png, ... V9.png, V10.png

I need to merge them into one giant image, with A1 being the top left corner, letters increasing horizontally and numbers increasing vertically. Is there a way to do this that does not involve tediously putting it together piece by piece?

SubTea

Posted 2009-09-19T18:28:10.560

Reputation: 71

@SubTea, are you referring to multiple unrelated images, like thumbnails? – hyperslug – 2009-09-19T20:06:40.750

I found a giant flowchart of metabolic processes online, which would really help in one of my classes this semester. Unfortunately, the flowchart is broken into a bunch of smaller images. Now that I've looked more closely, many of these images don't line up perfectly and some aren't even scaled properly, so I think the long way, shopping them together one by one, may be the only option to get the result I'm looking for. – SubTea – 2009-09-22T14:31:51.950

Ah, then you do need a photo-stitching solution. Have you tried Hugin, http://hugin.sourceforge.net/? Not sure but I think it can resize, too.

– hyperslug – 2009-09-22T16:55:40.803

Answers

9

http://www.imagemagick.org/Usage/montage/ is your friend. all you need to do is create the "right" command line.

if i think about it, all you have to do is:

ls *.png

and you got the right order already.

akira

Posted 2009-09-19T18:28:10.560

Reputation: 52 754

Eq: montage -backgorund none -title x1 *.png spri.png ::: transparent single line – user956584 – 2014-06-20T12:04:54.580

+1 imagemagick is pretty awesome if you're ok w/ a little scripting. – hyperslug – 2009-09-19T19:23:47.843

This looks like the best option (at least for .png since none of the other programs listed in other answers can handle .png) but as I look more closely at the images I have, the edges don't line up perfectly. – SubTea – 2009-09-22T00:37:58.520

2

Here are some freeware image stitchers:

Microsoft's Image Composite Editor

The application takes a set of overlapping photographs of a scene shot from a single camera location and creates a high-resolution panorama incorporating all the source images at full resolution. The stitched panorama can be saved in a wide variety of formats.

alt text

Autostitch
Choose your pictures and let it format the photos into a single combined panorama. All lighting corrections and blending are done for you.

alt text

Panorama Perfect Lite
Using nodes on the blending area of each photo, you can match each structure (tree, building etc.) to ensure that there is no distortion when joining. More complex, but better stitch without the bending and distortion you sometimes get with Autostitch.

alt text

Windows Live Photo Gallery
Used for managing your photos, but the Make menu contains a "Panorama Stitcher". Select the photos from the thumbnails viewer, and the program does the rest. Cropping and adjustment is immediately at hand under the Fix menu.

alt text

harrymc

Posted 2009-09-19T18:28:10.560

Reputation: 306 093

These look great for smaller projects involving photos, but NONE of the above programs support .png files. While I could convert these images to .jpg, the artifacts produced would be a problem as my current project is primarily text and multi-colored arrows on a white background.

On the other hand, I have made some crude panoramas in Photoshop over the years, and these have been a great help in cleaning those up! Thanks! – SubTea – 2009-09-22T00:49:29.557

0

You might want to check out Photosynth - I've never used it for a project this big, but it's free and awesome.

MDMarra

Posted 2009-09-19T18:28:10.560

Reputation: 19 580

Looks pretty awesome, will check that out later, but not what I'm looking for here. – SubTea – 2009-09-19T20:17:34.770

I've used Photosynth with more than 200 photos in the past, at the time it needed lots of RAM but I guess these days everybody has more RAM than I had then. (-: – hippietrail – 2014-01-16T13:50:50.507

0

I believe Picasa does something similar to this.

Katerberg

Posted 2009-09-19T18:28:10.560

Reputation: 745