Search code examples
imagepanoramas

How can I programatically combine many images into one?


I am looking for a way to write a script that will take around 400 png images and merge/combine them into one.

I have spent days playing and failing with image processing libraries for Python and C++.

If anyone could point me to a specific language or library that you know has this feature that would be awesome.


Solution

  • The ImageMagick libraries and tools both support this.

    Example link:

     montage -background #336699 -geometry +4+4 rose.jpg red-ball.png montage.jpg
    

    Or

    convert image1.jpg image2.jpg +append output.jpg
    

    You can also blend over lapping photo's togeather as listed in this article.