gpano2pto /path/to/PANO_20140225_134632.jpg /path/to/PANO_20140225_134812.jpg [...]
gpano2pto is a simple tool that reads GPano XMP tags in JPEG panorama files, calculates the field of view and crop offsets, and creates Hugin .pto projects with the photograph inserted correctly.
This allows further processing of panoramas such as levelling, changing projection, and cropping.
Note that partial panoramas are supported. So this tool does the right thing with panoramas less than 360 degrees, and with panoramas that have horizon lines above or below the middle of the image.
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
Bruno Postle - March 2014.