current version: 3.0.2
qtkrparse.php has two functions: The first part reads parameters and offsets of images from a Quicktime VR file and creates from this a XML file, a file with the offset info and a preview image. The second part loads the image data directly from the QTVR-file into the krpano player with help from the krpano numbering and the offsets file.
The server must be suitable for KRPano of course and must be able to execute PHP scripts. qtkrparse.php must reside in the same directory as the QTVR file(s) (it is possible to mirror qtkrparse.php by mod_rewrite). PHP must have write rights in this directory.
krpano must be at least version 1.1.8.
The QTVR-files must contain only Jpeg-compressed images. Header compression is not supported. qtkrparse issues an error message via krpano if such a file is found.
qtkrparse.php must be used with the QTVR file as GET parameter "mov" instead of the XML file by embedpano:
<script src="/krpano.js"></script> <script> embedpano({swf:"krpano.swf", xml:"qtkrparse.php?mov=my.mov", target:"krpano-div-id", html5:"auto"}); </script>
For details on how to embed krpano please see: http://www.krpano.com/docu/html/
The flash version can be called directly by GET parameter:
krpano.swf?pano=qtkrparse.php%3Fmov=mein.movThe second GET-delimiter "?" must be masked as "%3F".
var so = document.getElementById("krpanoSWFObject"); so.set("view.fisheye","0.35"); so.set("view.fovmax","179");
qtkrparse?mov=mein.mov&cache=reset
embedpano({swf:"krpano.swf", xml:"../mypath/qtkrparse.php?mov=my.mov", target:"krpano-div-id", html5:"auto"});
All Sphericals on http://erik-krause.de/pano are displayed with the help of qtkrparse.php. The calls are hidden behind some rewrite rules. But you can call the panoramas manually, too:
In order to use existing HTML pages with embedded QTVR without the need to create them again convert2.php is enclosed (originally from the Birdcap-package by Bernhard Vogl) To display an existing page with krpano pass it as a parameter to convert2.php in a link, f.e.:
<a href="convert2.php?file=panorama.html">interactive panorama</a>convert2.php replaces the <object> and <embed> Quicktime tag by an appropriate call of embedpano.
If your .htm files containing QTVR panoramas can be recognized with a certain pattern the work can be done by some rewrite rules.
# switch rewriting on RewriteEngine on # assuming your folder containing krpano, qtkrparse.php and convert2.php is /tools # redirect all calls to convert2.php into /tools RewriteRule (^|/)convert2\.php$ tools/convert2.php [L] # redirect all calls to qtkrparse.php into /tools RewriteRule (^|/)qtkrparse\.php(.*)$ tools/qtkrparse.php$2 [L] # redirect all calls to krpano into /tools RewriteRule (^|/)krpano\.(.*)$ tools/krpano.$2 [L] # assuming all of your htm files containing QTVR panoramas are named *_qt.htm # call convert2.php with the file name as parameter RewriteRule ^(.*)/([^./]+_qt)\.htm$ /$1/convert2.php?file=$2.htm [L]
For questions, suggestions, comments and corrections please contact me
© Erik Krause 2016 - 2024
© Erik Krause 2008 - 2024 All images on this pages are protected by copyright law. Any use - even pivate - requieres written permission by the author!
Erik Krause
Herchersgarten 1
D-79249 Merzhausen
e-Mail: Erik Krause
This page does not collect any data
The IP address in the server logs is anonymized.