Stitch Photos Into Panoramas with Free Software
Posted by Kevin Purdy at 2:00 AM on April 12, 2008

You can get decent photos out of a standard, consumer-grade digital camera, but a little post-processing can turn them into fantastic wide-angle landscapes. You don't need to be one of those people who can explain the concept of lateral chromatic aberration to get truly eye-catching digital pictures. With a few shutter clicks and some free, cross-platform software, you can easily mesh standard digi-cam shots into true landscapes, fix one photo's deficiencies with another, and create layered photo collages. Let's take a look at how to use the free, open source application Hugin to make two basic kinds of panoramas.
What you'll need
- A digital camera that embeds EXIF data in its pictures (that's basically all of them)
- A copy of Hugin (available for Windows, Mac, and Linux). If you're on Windows or Linux, you should also grab a copy of the AutoPano tools; Mac OS X users should have AutoPano tools built in. Follow the instructions at the Hugin site to install your copy.
What you'll get
Here's an example of the kind of photo you'll get from this process. Even though I shot this three-frame scene at Niagara Falls (from the U.S. side) in automatic mode, it still came out pretty spiffy, if I do say so myself. (Click for a larger version.)Shooting for panoramas
With Hugin's software, you can blend two side-by-side photos together, or you can cram 138 multi-angle Grand Canyon shots into one mega-vista. Whatever your project, here are some guides and tips on how to shoot to best take advantage of Hugin—and most any panorama-stitching software.
- Use consistent settings—If possible, change your "white balance" to a manual mode and set it to a plainly white or grey spot; if not, at least change from "auto white-balancing" to an another setting that works. Better still, if you can set exposure to manual, meter it for the brightest or most average spot in the scene. Neither is a requirement, but they'll help your finished product blend more evenly.
- Choose a centre point—Find the feature or area you think would look good in the centre and take steady aim, at the same zoom level you'll shoot the rest. It'll help you align your pictures later and ensure you've got space to build on.

- Shoot overlapping shots in ordered rows—If you're going for a horizontal-only panorama, go left to right, in a steady row, with 20-30 percent of the picture overlapping the last one, then do the same for higher or lower rows. Not only does it help you keep your shots organised, it counters the sometimes fuzzy or unfocused data many consumer cameras get at their exposure edges.
First steps: Merge a few pictures
We'll start simple, with two, three, or four pictures, shot in horizontal order. Load up Hugin, and you'll notice a series of tabs. Hit the "Load Images" button on the first "Assistant" tab, select your pics, and hit "Open." First-timers might get a prompt asking them to locate an AutoPano program—go ahead and point inside the folder you downloaded, but don't worry if you don't have it. Ignore the "Panorama Preview" that pops up and head for the second tab, "Images."
Remember that centre image we took? Find it in the list, then hit the "Anchor this image for position" button, and, assuming it's a well-lit shot, "Anchor this image for exposure." Next up is an optional step, for those who know a fair deal about their camera—head to the "Camera & Lens" tab, click on the centre image, and fill in what you know about your gear's degrees of view, focal length, colour offsets, and other photo-pro stuff. You can save your information here for future panoramas. Once you're done (or lost), let's head to the meaty stuff at the "Control Points" tab.
You'll see two panels here, each set (at first) to display the same picture. Click the "1" tab on the right-hand panel, and you'll see your overlapping pictures. If AutoPano launched when you loaded your pics, you'll also see a good number of coloured dots on the photo. Those are our "Control Points," spots that appear in both frames that Hugin uses to align and combine them.
AutoPano does a decent job sometimes, but it often picks out clouds, cars, blown branches and other moveable objects, which doesn't help anything. For a seamless meld, I wipe out the automatic points (select the first in the list at bottom and jam on the "delete" button on the right) and start fresh.
Zoom in on the photos (select "100%" or the like from the "View" menu in the lower-right) and move the sliders so you're looking at mostly overlapping areas. Find stable points that have a lot of contrast, such as building and window corners, road markings and signs—anything you're reasonably sure didn't move from one frame to the next. Repeat this process for each set of side-by-side frames. You only need a minimum of two pairs for each photo, but adding a few more ups Hugin's accuracy. Here's how I pinned the Niagara Falls (Ontario) skyline:

Click the "Optimizer" tab and, unless you want to get tweak-y, hitting the "Optimize now!" button, which starts lining up those Control Points and shifting photos around.
To see how Hugin did, hit the "Preview Panorama" menubar button, and you'll get a rough look at your creation. (It won't turn out exactly the same, but basically close). If it looks warped and off-base, you can head back and re-pin or add Control Points, move the crosshairs or use the "Center" and "Straighten" buttons in the preview mode to finesse it. Whenever you make any changes, however, head next to the Optimise tab and re-optimise—you can also change optimisation settings to see if that nets any benefits.
We're almost there, seriously! If the preview looks decent, head finally to the "Stitcher" tab. The "Projection" setting is the heart of Hugin, telling the program how to bend and shape the output. For a few overlapping photos, "Equirectangular" usually provides the fullest view and best blend, but "Rectilnear" seems best when photos are tightly lined up. Hit "Calculate View of Field" next, keep the Quick Stitcher setting to "with custom settings below," and then hit "Calculate Optimal Size." The numbers will be ludicrously big, so knock one of them down to a standard size. Keep the stitching engine on "Nona," and make sure "Image output file" is "TIFF" and that "soft blending" is checked so the Enblend engine can work its stuff. Tell it where to save, and Hugin gets to work. If you're prompted to point to "Enblend," it's located in its own folder right inside Hugin's directory. Hugin will create temporary TIFF files and work your system pretty hard while it runs, which can take anywhere from seconds to a few minutes, depending on your system.
If the resulting image file is discolored in spots, it's likely due to camera settings or stark lighting differences, which, with only a few photos, can be fixed only in post-processing.
Shooting full panoramas
If you followed the basic steps above, shooting and stitching a wider-angle panorama scene is much the same, with a few exceptions:
- Shooting—If you're covering a wide area and shooting many more snaps, it's important to stay and pivot in one place and focus on keeping a 20-30% overlap. You'll also want to watch for inconsistencies like cars, pedestrians and other scenes that change, unless you're going for a more artistic paste-collage look
- AutoPano—You'll have to rely on this to create your Control Points, changing them only where you see problems in Preview or want finer control. Of course, you can line up matches for dozens of remarkably-similar pics by hand, but that's up to you.
- Frame pruning—If you've shot a lot of overlapping pictures and want to get rid of a phantom arm, half-car, or anything else, you can easily remove entire frames and likely not damage the scene. Head to the Preview window, click the numbered buttons to toggle frames on and off, hold the mouse on the button to get the file name, then head back to the "Images" tab and remove the file with the right-hand button.
- Stitching—Set the "Projection" setting to "Panorama" if you've covered a wide area, horizontal and vertical, or try other settings, like "Fish eye" for that "Paul's Boutique" look.
Once you've got the basics down, Hugin has much, much more for you to explore, including tutorials at the home page that show you how to use the app with scanned documents, to create true 360-degree panoramas, and how to get real geeky with the settings.
This is the method that worked most consistently for me with different sets of photos. I chose Hugin over previously-posted AutoStitch for its cross-platform nature. But I want to hear how your own tips on how you work Hugin (or similar panorama-making apps) to make big, breathtaking scenes—with image links, naturally. Share your tips, questions and photo pride in the comments.
Kevin Purdy, associate editor at Lifehacker, is going to be even more annoyingly shutter-buggy around his friends now. His weekly feature, Open Sourcery, appears every Saturday on Lifehacker AU.

Comments (AU Comments · US Comments)
There are currently no AU comments for this post.
holymogwai
Posted 2:38 AM 12/4/08
I just use a tripod and photoshop for mine.
[farm1.static.flickr.com]
For a better view, you can see it at my flickr stream. Still tweaking the right 1/3 to make it blend a little better.
[www.flickr.com]
holymogwai
nicoco
Posted 2:30 AM 12/4/08
@AskTheAdmin: I've tried it and it's not completely straightforward, but it's not that difficult either, especially with this great tutorial.
If you're looking for something quick and easy, there's autostitch, where you don't have to set control points. But apparently, the results are not as good.
nicoco
Jason Lambert
Posted 2:29 AM 12/4/08
Jason Lambert
kaiyao
Posted 2:17 AM 12/4/08
If "free" means "free of charge" to you, Windows Live Photo Gallery does photo stitching as well.
kaiyao
AskTheAdmin
Posted 2:15 AM 12/4/08
I am going to give this a go this weekend. I tried the software that came with my canon but it was tedious to say the least.
Has anyone used it yet? How easy is it to use?
AskTheAdmin
whereisian
Posted 2:13 AM 12/4/08
This system works well. Better than the commercial software I had access too (Photoshop CS). Although it is quite a bit slower.
Did the later versions of PS improve on this function? Is it in the GIMP?
whereisian
garethkeenan
Posted 3:14 AM 12/4/08
I've been using autostitch for the past few years. Works without any problems: just remember to increase the output resolution settings from their defaults.
[www.cs.ubc.ca]
garethkeenan
wjh31
Posted 3:14 AM 12/4/08
I have been using autostitch all day for a bunch of photos i took earlier, its ultra straight-forward to use etc
wjh31
solareclipse2
Posted 3:22 AM 12/4/08
I've been meaning to try out some panorama shots now that the weather is getting nicer. My question is this, how is this better/different than the stitch assist setting that my Canon has built into it? That setting lets me take a photo, then line up the next one on the display, take it and then repeat for the third one.
solareclipse2
jmondro
Posted 3:15 AM 12/4/08
I've always had a lot of luck with the free version of Autostitch.
[www.cs.ubc.ca]
Depending on your photots, you may have to play with the settings a bit. Other than that, it requires no input whatsoever.
Non-commercial use only...
jmondro
snehith
Posted 4:07 AM 12/4/08
I personally use AutoStitch ([www.cs.ubc.ca]) works flawlessly in Wine ([www.winehq.org])
snehith
robotnations
Posted 4:03 AM 12/4/08
If free isn't a concern, I've had a lot of success with DoubleTake ([echoone.com]), a Mac OS X program that handles most of the finicky configuration stuff in the post automagically, with pretty good results.
robotnations
microtard
Posted 3:32 AM 12/4/08
Too many people overlook the great free software that Microsoft gives you.
The number of steps required in this article make this too complicated. With Windows Live Photo Gallery ([get.live.com] ), you can stitch photos together into panoramics with just one click - so simple your mom could do it.
(Note this is Windows LIVE Photo Gallery, one of several free software like Writer, Messenger and Mail, not the Windows Photo Gallery which ships in Vista by default).
microtard
jwoolz48
Posted 2:30 AM 12/4/08
I have used it before. It is not that difficult to use. It does take a little bit of time to create the matching points.
Personally, I like AutoStitch. It does most of the work for me and does just as good a job as Hugin.
[www.cs.ubc.ca]
jwoolz48
Fierock
Posted 4:49 AM 12/4/08
Fierock
jwoolz48
Posted 4:23 AM 12/4/08
@garethkeenan:
Great tip on remembering to increase the output resolution. Took me a few tries before figuring this out.
jwoolz48
JerryA
Posted 4:19 AM 12/4/08
Another vote for autostitch. I've been using it for a couple of years now. I will try this one out next time I do a panoramic shot though. I like making them so I do a lot.
JerryA
Equis
Posted 5:04 AM 12/4/08
+1 for Autostitch. I've been using it for years.
Equis
brilang
Posted 5:46 AM 12/4/08
[farm3.static.flickr.com]
Autostitch is awsome! [www.cs.ubc.ca] I have a bunch posted on my Flickr Photostream including this one
I haven't bothered trimming the photo. My experience so far has not included a tripod so I get jagged edges ... :)
brilang
Greg McMullin
Posted 5:31 AM 12/4/08
Would this method work with old photos I have scanned? I have a bunch of panoramic shots from YEARS ago. Ive always wanted to stitch them together.
Greg McMullin
holymogwai
Posted 6:09 AM 12/4/08
@brilang: Crop it in picasa :)
holymogwai
ahawks
Posted 6:50 AM 12/4/08
I've been getting into full panorama shooting lately (360' horizontal by 180' vertical).
One very important factor is reducing parallax, which is what our eyes/brain use to determine depth. This is when foreground objects move relative to background.
To reduce it, you must find the Nodal point of your lens and rotate around it. With some googling, you can look up the nodal point for your lens/camera combo.
Then, figure out a way to rotate around that fixed point. Some people hang a string from the camera at that point and rotate around it (a "plumb bob"), or you can spend $$ and buy something like a Nodal Ninja tripod head.
Here are a couple I've done with the string method:
[www.flickr.com]
[www.flickr.com]
ahawks
Kevin Purdy
Posted 6:33 AM 12/4/08
@Greg McMullin: Yes. There's actually a tutorial on Hugin's page with tips for using scanned images.
Kevin Purdy
da5id_nz
Posted 7:30 AM 12/4/08
opps, sorry for the multiple posts. Took a while for them to show up..
da5id_nz
da5id_nz
Posted 7:30 AM 12/4/08
OK, Now that we have our panorama, what is the best free or open source program to create those immersive 360 Quicktime VR kind of movies?
[this is try number three of posting this. I don't know why my last two tries didn't post. Am ticking both checkboxes this time]
da5id_nz
da5id_nz
Posted 7:23 AM 12/4/08
OK, now that we have our panaroma, what is the best software (any open source?) to make those immersive 360 degree Quicktime VR type of movie?
da5id_nz
da5id_nz
Posted 7:18 AM 12/4/08
OK, now that we have the panoramas, which is the best free or open source software to create 360 degree (or lessor) immersive VR images? (like Quicktime VR).
da5id_nz
matthew
Posted 7:10 AM 12/4/08
I've used Autostitch for all my panos, with varying results. A lot of the time the results are perfect of "good enough" and the interface (file>open>stitch>start) couldn't really be easier. And if the result isn't good enough, playing around with the variables generally turns out a good result.
matthew
electrikecho
Posted 7:50 AM 12/4/08
@da5id_nz:
There's a couple free programs I've used to view spherical and cylindrical panoramas I've made: DevalVR and FSPViewer. Both are simple to navigate, and allow you to zoom in and out of your pictures. DevalVR also comes as a plugin for allowing your visitors to freely view your photos on a webpage.
[DevalVR]
[FSPViewer]
electrikecho
da5id_nz
Posted 7:50 AM 12/4/08
@ahawks: Thanks! I also found some HERE although I haven't tried it.
da5id_nz
ahawks
Posted 7:46 AM 12/4/08
da5id: I have a free app that converts to .mov interactive files. I can't remember the name, but I will post it when I get home tonight.
This was produced with said app:
[ajhawks.com]
ahawks
Richard_Burnside
Posted 5:33 AM 12/4/08
Another vote for Autostitch. Very easy to use. Good results.
Richard_Burnside
enigma23
Posted 4:52 AM 12/4/08
enigma23
Bumble555
Posted 4:38 AM 12/4/08
Now let's do the same tutorial with Autostitch [www.cs.ubc.ca] . Select output resolution and Jpeg quality, open directory with pictures to stitch, wait, and voilĂ !
Bumble555
jkrell
Posted 8:15 AM 12/4/08
jkrell
Torley
Posted 8:12 AM 12/4/08
Ooh we can include images with our comments now? This is awesome!
I've done many panoramas of the online world of Second Life before, such as:
[farm4.static.flickr.com]
I've written an extensive tutorial on it with the free Autostitch: [torley.com]
The principles can be applied to the "real world" too.
Torley
daftary
Posted 9:32 AM 12/4/08
I see a lot of people talk about autostitch here - however autostitch isnt free - Hugin on the other hand is.
Also, Hugin can be set up to use use autopano algorithms anyway - so you get double benefit - you can fine tune the control points - and in my experience, that always helps since even with autostitch, there are small niggly issues found on close inspection.
Also, important to use is enblend and smartblend along with Hugin.
I have gotten my best results with a combination of Hugin + autopano + enblend.
daftary
daftary
Posted 10:23 AM 12/4/08
@jkrell: and oh yes, hugin allows you to make perspective corrections also.
[hugin.sourceforge.net]
on the other hand, if you want to make distortion corrections - barrel distortion and pin cushion distortion - PTLens from www.epaperless.com is the best option.
[www.epaperpress.com]
daftary
antman70
Posted 10:20 AM 12/4/08
@daftary:
Whaddaya mean it ain't free? I've been using it for ages and it is.
antman70
da5id_nz
Posted 11:25 AM 12/4/08
Correction: the blurb on the Autostitch site says -
The version of Autostitch on this website is a demo only. Individuals or companies are free to use images that they generate using the demo version of Autostitch without restriction or royalties so long as they acknowledge the use of Autostitch in such works. A commercial license to Autostitch provides access to the patent, source code, technical support and updates.
But I still don't think it has any limitations.
da5id_nz
da5id_nz
Posted 11:23 AM 12/4/08
@daftary: Autostitch is free for non-commercial use but it's technology has been licensed for use in commercial products such as Autopano Pro and Serif Panorama Plus.
@electrikecho: Thanks for the links!
Also supposed to be good is Panorama Perfect which also comes in a free Lite version.
I found this huge list of software here, some freeware, some shareware, some not free.
da5id_nz
technofencer
Posted 11:21 AM 12/4/08
I love you, Kevin. Thanks for supporting Linux, man!
technofencer
daftary
Posted 12:56 PM 12/4/08
@da5id_nz:
@antman70: you are right. i rechecked the website and found the same info. However, the same SIFT algorithm available in autopano alogorithms ([autopano.kolor.com] and [user.cs.tu-berlin.de]) and these apps claim that the software cannot be used for commercial purposes.
Somehow I vaguely remember that in the past autostitch free version was limited to only panos of a certain filesize and the non-free version was unlimited. Maybe I am mixing it up with some other program.
daftary
MePerson
Posted 12:21 PM 12/4/08
Use smartblend instead of the default enblend. [smartblend.panotools.info]
Be sure to uncheck the "Use cropped TIFFs" option under Enblend in the options.
MePerson
zaxl
Posted 1:45 PM 12/4/08
Autostitch is the way to go.
zaxl
Joseph
Posted 7:16 PM 12/4/08
@AskTheAdmin: I have a canon G9 and I used the photostitch software that came w/ it. Here is a shot from the NCAA finals game.
[filebox.vt.edu]
Joseph
deadbrain
Posted 9:34 PM 12/4/08
Hugin and progs like PTGui or PTAssembler are nowadays the state of the art of the panorama stitching software. They are not so easy to use, but their results are amazing. All the professional photographers involved in panoramas use one or the other. The real magic of this progs is that they use free algorithms (often with further optimizations) in order to blend images and calculate the correct distortion values.
In 2005 I stitched a panorama of 40 images (from a canon G2, a mere 4Mpixel camera), with an output image of 80Mpixel equivalent. Other people had surpassed 100Mpixel images (when current resolution for point and shoot cameras was about 4/8 megapixel only...)
deadbrain
ondrejlipar
Posted 11:43 PM 12/4/08
I'm using AutoStitch - it works great and it's free.
ondrejlipar
SloppyChris
Posted 7:06 AM 13/4/08
I prefer free software (community developed) as opposed to just free as in price.
I use a combination of hugin with the autopano gui. It's super easy, there isn't any need to mess with the complicated parts.
SloppyChris
Jigzila
Posted 2:46 PM 13/4/08
I have a HP photsmart printer and the driver software came with a drag n drop photo stitch program. Works really great. It has the ability to save the picture at any quality percentage and open in Preview.app before saving. It works great and I think you can download the driver software/packages for free from the HP website.
Jigzila
soul_grind
Posted 1:05 AM 14/4/08
@microtard:
Wow, thanks. I spent ages looking for a version of MS Photo Gallery that would work on XP, but i didn't think there was one. Its the ONLY thing that was good about vista.
I know everyone here loves Picasa and Flickr, but frankly i've had no joy with either when it comes to tagging and organizing. So if MS gallery is good for tagging, and now i've moved to [www.23hq.com] I'll be much happier!
soul_grind
brumec
Posted 10:21 AM 12/4/08
I got myself a copy of PTgui [www.ptgui.com]
afaik the best stitching tool, fast, very straight forward interface... Kevind suggested to give and example, so here's mine: [shrani.si]
brumec
Sockatume
Posted 5:16 PM 14/4/08
Stitching software isn't just about panoramas. You can make ridiculous 35Mpixel photos which would otherwise demand a wide-angle lens and the CCD from an astronomical satellite, by half-shuttering a simple compact digital camera and shooting away.
Sockatume
sharpeiboy
Posted 3:23 AM 15/4/08
Any tips on where to get these printed on photo paper once they're created?
sharpeiboy