4

Does anyone know of an easy to use (and free) photo editor that will allow me to stitch three images together? Anything that works on Ubuntu 14.04 or Windows 8/8.1 is fine.

The three images I am trying to connect are of a decently big spreadsheet I took screen shots of (20 rows and 8 columns, with 4 lines of text per cell). I am placing these images in a README.md file on Github.

What I've tried:

  • Github allows me to place all three images in successive lines, which makes it sort of appear like it is one image, except that my cropping for the three images is a bit misaligned.

  • I took one screenshot of the entire table by zooming way out in order to capture it all. The resulting crop had readable, but still too small, text.

2 Answers 2

6

The best image stitcher that I know of is hugin - it allows you to stitch images together that are not in a simple left/right or right/left order.

hugin is free, open source and cross platform including linux & windows.

On Ubuntu just use:

sudo apt-get install hugin

if it isn't already installed.

4
  • Worked like a charm!
    – gbrlrz017
    Commented Dec 19, 2014 at 9:33
  • 1
    If Steve wouldn't have already recommended it, I'd done so now. Using Hugin for years already on Linux. Didn't yet find anything coming even close to it. It even allows for lens correctures, correctures in dimensions (angles), blend modes, projections...
    – Izzy
    Commented Dec 19, 2014 at 13:54
  • @Izzy - I think that it is a brilliant toolkit - forgot to mention perspective corrections, exposure and focus stacking, and lots of other goodies in their. Commented Dec 20, 2014 at 18:26
  • 1
    @SteveBarnes if you mention all features, nobody finds the other answers anymore :) It can even be used for HDR
    – Izzy
    Commented Dec 20, 2014 at 18:41
3

You can use ImageMagick (open source and cross-platform) and use the command (assuming that your images are PNGs, which is often the best choice for screenshots):

montage *.png -tile 1x -mode Concatenate out.jpg
  • -tile 1x: concatenate vertically (use -tile x1 for horizontal)
  • -mode Concatenate: concatenate without any white space between the images

More details on the montage program (part of ImageMagick) if interested.


Some ImageMagick useful commands for pre-processing your photos before the collage:

  • you can resize the image (to approximately 2MB in this example) using:

    mogrify -define jpeg:extent=2048KB out.jpg

  • you can modify the dimension of a bunch of images using (to 30% in this example):

    mogrify -resize 30x30% *.png

Also note that JPEG/JFIF supports a maximum image size of 65535×65535 pixels, while the PNG specification doesn't appear to place any limits on the width and height of an image; these are 4 byte unsigned integers, which could be up to 4294967295 .

enter image description here

and if you are curious: Why does ImageMagick's montage limit the JPG output to 65500 instead of 65535?


FYI:

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.