hugin from command line (non interactive)

Asked by Thomas Guettler

Hugin does a great job. In 95% of my cases I don't need to alter the default settings.

That's why I think a command line for stitching would be great

My question: Is it possible to stitch pictures non interactive from the command line?


hugin -o panorama.jpg foo1.jpg foo2.jpg foo3.jpg

For me convenience is more important than technical perfection (since the current defaults
work very good).

Question information

English Edit question
Hugin Edit question
No assignee Edit question
Solved by:
Last query:
Last reply:
Revision history for this message
Best tmodes (tmodes) said :

The simplest way is to use PTBatcherGUI:
Add all images to a project file, then send to Assistant queue (Edit>Send to assistant queue).
Or save the file and add the file to queue in PTBatcherGUI: Files > Add project to assistant queue...
If you activate the option "Automatic stitch after assistant" the project will automatically stitch afterwards.

If your images contains enough metadata (EXIF), you can also try Files>Search directory for…>Images in PTBatcher to automate this process of creating project files.

If you want to do it from the command line, see the wiki page (the current version has been updated for the upcoming version 2015.0). But this requires to effort and knowledge of the process.

Revision history for this message
Thomas Guettler (guettli-lp) said :

I don't get why my grand mother with her android phone is able to do panoramas without knowing anything about the internals.

Why is creating panoramas with the desktop operating system much harder?

Why is there no script which takes N images as input and outputs a panorama image?

The result does not need to be perfect. It is enough if the result is good. And hugin can do very
good panoramas with the GUI. Up to now I just use the wizard and most of the time I don't need
to do any manual editing.

I am just missing the no-brainer usability app which my grand mother uses on her android phone :-)