Hi, how I can open popup image from hotspot, and resize it to browser height?
Thanks.
Hi, how I can open popup image from hotspot, and resize it to browser height?
Thanks.
I have find this, but how i can add a tween for to open image from small to big?
<layer name="popupimage" url="images/quadro1.jpg" align="center" height="80%" width="prop" visible="false" onclick="set(visible,false);" /> <hotspot name="quadro1" url="images/spot.png" ath="164" atv="5" onclick="set(layer[popupimage].visible,true);" />
How i can set the max height or width as the size of browser?
Thanks.
Any idea?
I have try, but if i use the 3th button is ok only if the browser have the same ratio of the image, if you open a landscape image in a portrait browser, the image is distorted.
How can I enlarge respecting the proportions and the short side of the browser as maximum size?
Thanks.
Try investigating this code from this example: https://krpano.com/examples/116/e…pe/fovtype.html
Adapting this code from Klaus you can achieve what you want. https://krpano.com/examples/116/e…ype.xml%3C/a%3E
In general, this is base idea that works. You have to read your image dimensions and use it as parameter....
Simply add to Umalo's code
height="100%" - width="prop"
Toni
Simply add to Umalo's code
height="100%" - width="prop"
Toni
Witht this method, if i see my image in the desktop is ok, but i i see the image in the smartphone, where the ratio of the monitor is inverse, it exit from my screen.
I need a method where the longest side, x or y is the guide for the resize.
I hope I explained myself better
Thanks.
I will not give you an answer immediately. Want to motive you to come up with your own solution. Read your last post. There are several good points (one good IF) there which are important.
-Hints: Screen ratio, Image ratio. Put some random resolutions on paper and think how to decide e.g. when your area is in portrait and when in landscape (one line of code but...no yet, we need to see you think and try).
It is actually pretty simple math to find them out and than you know what to do... set this or that to 100% or less and other to PROP. (Toni was partially right)
Hi, thanks, but i don't know how to code my idea for krpano.
Yes, is a set of if, that may be some like:
if (browser width is greater that height) width="prop" height="80%"
if (browser width is less that height) width="80%" height="prop"
but this is for landscape imge, if i apply this code to a portrait image my be that it go out of the screen, and i think that i need too a code for to understand if the image in landscape o portrait oriented.
..but i don't know ho to do.
ok, now you are talking. Good one . Here are more hints:
- https://krpano.com/docu/xml/#plugin.imagewidth
- https://krpano.com/docu/actions/#stagewidth
Don’t have an account yet? Register yourself now and be a part of our community!