Current version: 1.2
Zip file
Test page 1
XML file
Test page 2
XML file
Test page 3 (vignetting)
XML file
Test page 1
XML file
Test page 2
XML file
Test page 3 (vignetting)
XML file
rescaler.swf
FPP hotspot plugin for displaying an image or .swf file that can be rescaled when pano size changes.
It has some advantages over the FPP smartscale plugin.
The following attributes are supported:
NOTES: The main advantage over the FPP smartscale plugin is that the image can be rescaled to fit a certain part of the pano, and (if you want) always keep its aspect ratio.
The size attribute has the following format:
size="width:height"
The width or height values can be expressed in the following way:
Example FPP xml file:
file | file="images/clock31.swf" | image or .swf file to load |
size | size="auto" | display size in pixels, percentage or auto - se NOTES |
padding | padding="20" | minimum space around image - se NOTES |
maxScale | maxScale="150%" | max image scale, expressed as, for example, 75% or 0.75 |
NOTES: The main advantage over the FPP smartscale plugin is that the image can be rescaled to fit a certain part of the pano, and (if you want) always keep its aspect ratio.
The size attribute has the following format:
size="width:height"
The width or height values can be expressed in the following way:
fixed number | size="280:..." | image width will always be 280 pixels |
percentage | size="80%:..." | image width will always be 80% of pano width |
auto | size="auto:..." | image width will adapt to height to keep aspect ratio |
A couple of examples:
size="250:auto" | width fixed at 250 pixels height fixed and calculated to keep aspect ratio |
size="auto:75%" | width will adapt to height to keep aspect ratio height varies to always be 75% of pano height |
size="60%:40%" | width varies to always be 60% of pano width height varies to always be 40% of pano height aspect ratio will vary |
size="auto:auto" or size="auto" | width varies to be max 100% of pano width height varies to be max 100% of pano height aspect ratio will always be kept |
If only one size value is given, it will be applied to both width and height.
The padding attribute is only meaningful when spot alignment is set to "CM", as available image space is decreased by this value times two. And if the image is aligned to one of the pano sides, the empty space will be on just one side of the image.Example FPP xml file:
<hotspots> <global onStart="goBridge()" goBridge="loadPano(panoName=../arstaviken/img/arstaviken090627&panHome=-150&tiltHome=0&zoomHome=0.8)" > <spot id="FSbutton" url="../img/full.png" alt="Fullscreen on/off" static="1" salign="TL" staticX="35" staticY="35" scale="1" alpha="0.65" onClick="fullscreen(-)" /> <spot id="pic1" url="../rescaler.swf" static="1" align="CM" salign="CM" staticX="0" staticY="0" blockMouse="1" buttonMode="0" file="/panos/images/com/clock31.swf" size="auto" /> </global> </hotspots>