Convert code to display Panoramas using old-style PTViewer Java applet

88 views
Skip to first unread message

Hans Loepfe

unread,
May 28, 2014, 7:37:15 PM5/28/14
to pt...@googlegroups.com
Hello,

my client has a ton of panoramas displayed with the old PTViewer.class Java applet, often using the PTRoi.class

Just about since Java updates from JRE6 to current JRE 7.25 the display of these panoramas is no longer possible.
The message says: Security Settings have blocked an untrusted application from running.

I am requested to propose solutions to make them panoramas publicly visible again.

Yes, I know we could run all Panoramas through the 'Publish to Website' option in PTGUI.
But we're hoping for a possibly simpler solution only because the 'Publish to Website' does not yet allow to process multiple source files with varying parameters.

It is also important to retain the current HTML-code (apart from the section displaying the panorama) because it contains other valuable metadata such as titles, descriptions, captions, location info, dates, rights, authorship, file-name etc.. All that data can be made available in a flat csv-file.

Your ideas and suggestions are most welcome, thanks.
Below is an example of the 'old' code:

Hans.

<code>
<!--[if !IE]> Browsers use outer object, except MSIE-->
<object type="application/x-java-applet">
	<param name="code"	value="ptviewer.class" />
	<param name="codebase"	value="/assets/ptv28" />
	<param name="archive" 	value="ptviewer.jar" />
	<param name="pwidth" 	value="4281" />
	<param name="pheight" 	value="2141" />
	<param name="roi0"	value="i'image/image00638.jpg' x1100 y936" />
<!--    <param name="tilt"	value="0" /> -->
	<param name="tiltmin"	value="-47.55" />
	<param name="tiltmax"	value="11.31" />
	<param name="pan"	value="-25" />
	<param name="panmin"	value="-87.5" />
	<param name="panmax"	value="87.5" />
	<param name="fov"	value="74.25" />
	<param name="fovmax" 	value="78.16" />
	<param name="antialias" value="true" />
	<param name="cursor" 	value="move" />
	<param name="quality" 	value="6" />
	<param name="auto" 	value="0.08" />
	<param name="frame" 	value="controlimages/frame_650x433.gif" />
	<param name="shotspot0" value="x1 y407 a26 b432 u'ptviewer:ZoomIn()' i'controlimages/zoom_in.gif' q- " />
	<param name="shotspot1" value="x26 y407 a51 b432 u'ptviewer:ZoomOut()' i'controlimages/zoom_out.gif' q- " />
	<param name="shotspot2" value="x51 y407 a76 b432 u'ptviewer:' i'controlimages/arrows.gif' q- " />
	<param name="shotspot3" value="x51 y415 a59 b423 u'ptviewer:panLeft()' i'controlimages/left_arrow.gif' p- " />
	<param name="shotspot4" value="x68 y415 a77 b423 u'ptviewer:panRight()' i'controlimages/right_arrow.gif' p- " />
	<param name="shotspot5" value="x58 y407 a68 b415 u'ptviewer:panUp()' i'controlimages/up_arrow.gif' p- " />
	<param name="shotspot6" value="x58 y424 a68 b432 u'ptviewer:panDown()' i'controlimages/down_arrow.gif' p- " />
	<param name="shotspot7" value="x76 y407 a101 b432 u'ptviewer:startAutoPan(0.1,0,1)' i'controlimages/refresh.gif' q- " />
<!--<![endif]-->

<!-- MSIE (Microsoft Internet Explorer) use inner object -->

<object classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" codebase="http://java.sun.com/update/1.5.0/jinstall-1_5_0-windows-i586.cab" width="650" height="433">
	<param name="archive"   value="/assets/ptv28/ptviewer.jar" />
	<param name="code" 	value="ptviewer" />
	<param name="pwidth" 	value="4281" />
	<param name="pheight" 	value="2141" />
	<param name="roi0"	value="i'image/image00638.jpg' x1100 y936" />
<!--    <param name="tilt"	value="0" /> -->
	<param name="tiltmin"	value="-47.55" />
	<param name="tiltmax"	value="11.31" />
	<param name="pan"	value="-25" />
	<param name="panmin"	value="-87.5" />
	<param name="panmax"	value="87.5" />
	<param name="fov" 	value="74.25" />
	<param name="fovmax" 	value="78.16" />
	<param name="antialias" value="true" />
	<param name="cursor" 	value="move" />
	<param name="quality" 	value="6" />
	<param name="auto" 	value="0.08" />
	<param name="frame" 	value="/assets/ptv28/controlimages/frame_650x433.gif" />
	<param name="shotspot0" value="x1 y407 a26 b432 u'ptviewer:ZoomIn()' i'/assets/ptv28/controlimages/zoom_in.gif' q- " />
	<param name="shotspot1" value="x26 y407 a51 b432 u'ptviewer:ZoomOut()' i'/assets/ptv28/controlimages/zoom_out.gif' q- " />
	<param name="shotspot2" value="x51 y407 a76 b432 u'ptviewer:' i'/assets/ptv28/controlimages/arrows.gif' q- " />
	<param name="shotspot3" value="x51 y415 a59 b423 u'ptviewer:panLeft()' i'/assets/ptv28/controlimages/left_arrow.gif' p- " />
	<param name="shotspot4" value="x68 y415 a77 b423 u'ptviewer:panRight()' i'/assets/ptv28/controlimages/right_arrow.gif' p- " />
	<param name="shotspot5" value="x58 y407 a68 b415 u'ptviewer:panUp()' i'/assets/ptv28/controlimages/up_arrow.gif' p- " />
	<param name="shotspot6" value="x58 y424 a68 b432 u'ptviewer:panDown()' i'/assets/ptv28/controlimages/down_arrow.gif' p- " />
	<param name="shotspot7" value="x76 y407 a101 b432 u'ptviewer:startAutoPan(0.1,0,1)' i'/assets/ptv28/controlimages/refresh.gif' q- " />
</object>
  <!--[if !IE]> close outer object -->
</object>
<!--<![endif]-->
</code>

PTGui Support

unread,
May 29, 2014, 3:45:29 AM5/29/14
to pt...@googlegroups.com
Hi Hans,

One option would be to use Publish to Website and have it only generate
the image tiles. This can be done in batch: panorama.jpg will be
converted to panorama_00.jpg to _14.jpg in the same folder. Then edit
the html files by hand (which is probably unavoidable anyway).

And I'm sure something similar can be done using Pano2VR.

Kind regards,

New House Internet Services BV
Joost Nieuwenhuijse

-----------------------------------------------
PTGui - Photo Stitching Software

www.ptgui.com
For support see: http://www.ptgui.com/faq/
-----------------------------------------------
> --
> --
> You received this message because you are subscribed to the Google
> Groups "PTGui" group.
> To post to this group, send email to pt...@googlegroups.com
> To unsubscribe from this group, send email to
> ptgui+un...@googlegroups.com
> Please do not add attachments to your posts; instead upload your files
> at a file sharing site (for example http://ge.tt/ ) and include a link
> in your message.
> For more options, visit this group at http://groups.google.com/group/ptgui
>
> ---
> You received this message because you are subscribed to the Google
> Groups "PTGui Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to ptgui+un...@googlegroups.com
> <mailto:ptgui+un...@googlegroups.com>.
> For more options, visit https://groups.google.com/d/optout.

Hans Loepfe

unread,
May 29, 2014, 3:18:42 PM5/29/14
to pt...@googlegroups.com
Hello Joost,
thanks for your  prompt reply.
I know that Publish to Website will create x-panoramas in batch-mode.
We briefly talked about a possible extension of that service recently. (see also this thread on 2014-05-13: https://groups.google.com/forum/#!topic/ptgui/YGw6Eqw1UgI 
I am afraid that as of today your suggestion is the best and only way.

Is it correct that the 'old-code' as indicated in this post (using an applet) is not possible to convert due to security restrictions in JRE 7.x ?

I am looking forward to finding the panorama batch processing that inlcudes panorama specific metadata like title, description, location info, etc. (about 10+ fields).

Greetings, Hans.
Reply all
Reply to author
Forward
0 new messages