When I first started using krpano 8 years ago, I built some tools to decode AutopanoGiga .pano files to extract panorama info, and feed it into my XMLs. With the recent upgrade, I see that krpanotools makepano says it does that if you use autodetect, so I have been looking at replacing my logic with makepano since it will do a better job of building the xml about the pano.
However, in my first attempt, giving it a panorama with the following comments in the Exif:
Image Description : ASCII Kolor stitching | 20 pictures | Size: 16021 x 1061 | Lens: Standard | RMS: 2.45 | FOV: 315.83 x 20.35 ~ -7.37 | Projection: Cylindrical | Color: LDR |
User Comment : ASCII Kolor stitching | 20 pictures | Size: 16021 x 1061 | Lens: Standard | RMS: 2.45 | FOV: 315.83 x 20.35 ~ -7.37 | Projection: Cylindrical | Color: LDR |
Comment : ASCII Kolor stitching | 20 pictures | Size: 16021 x 1061 | Lens: Standard | RMS: 2.45 | FOV: 315.83 x 20.35 ~ -7.37 | Projection: Cylindrical | Color: LDR |
Using panotype=autodetect in my config file, it still asks me for a pano type and for the field of view. What do I need to do to get it to use this comment? Also, any idea what the 7.37 is in the comment?
I still will probably continue to read the data myself since I will use different config file options to makepano based on what class of pano it is. (For example, I like to display wide aspect ratio panos full height, but more square panos I want to fit the window and let them zoom in if they want full height.
Right now, absent this, I am coding my tool to invoke makepano with the parameters passed on the command line as attributes. I would also like to pass other strings to it, for example, a variable like %BASENAME% that I can use in url templates to define where I want these things to go. In particular, I want to put my tiles and XML in a directory sectionname/%BASENAME% but how do I pass the "sectionname" to makepano so that I can get it inserted in the URLs for the xml and tiles? I see how to define placeholders for the XML template, but is there a way to do this?