Improve options
Signed-off-by: Rémi BERTHO <remi.bertho@dalan.fr>
This commit is contained in:
parent
d1e5089bdd
commit
a15fdb2ad6
2 changed files with 3 additions and 2 deletions
|
@ -15,7 +15,7 @@ app = QApplication(sys.argv)
|
||||||
app.setApplicationName("SimplePanoramaViewer")
|
app.setApplicationName("SimplePanoramaViewer")
|
||||||
|
|
||||||
if len(sys.argv) < 2:
|
if len(sys.argv) < 2:
|
||||||
img_dialog = QFileDialog.getOpenFileName(None, "Open image", str(Path.home()), "JPG Images (*.jpg *.JPG *.jpeg)")
|
img_dialog = QFileDialog.getOpenFileName(None, "Open image", str(Path.home()), "JPG Images (*.jpg *.JPG *.jpeg *.pjpeg *.pjpg *.PJPG)")
|
||||||
img = img_dialog[0]
|
img = img_dialog[0]
|
||||||
else:
|
else:
|
||||||
img = path.abspath(sys.argv[1])
|
img = path.abspath(sys.argv[1])
|
||||||
|
|
|
@ -49,10 +49,11 @@
|
||||||
var PSV = new PhotoSphereViewer({
|
var PSV = new PhotoSphereViewer({
|
||||||
container: 'photosphere',
|
container: 'photosphere',
|
||||||
panorama: '__IMG_PATH__',
|
panorama: '__IMG_PATH__',
|
||||||
|
caption: 'Panorama displayed with Photo Sphere Viewer V3.4.0',
|
||||||
time_anim: false,
|
time_anim: false,
|
||||||
default_fov: 40,
|
default_fov: 40,
|
||||||
min_fov: 5,
|
min_fov: 5,
|
||||||
max_fov: 60,
|
max_fov: 75,
|
||||||
navbar: [
|
navbar: [
|
||||||
'autorotate',
|
'autorotate',
|
||||||
'zoom',
|
'zoom',
|
||||||
|
|
Loading…
Reference in a new issue