Hello klaus.krpano,
I thought my problem was resolved but testing my app on firefox I got same probleme that before. maxpixelzoom does not working on firefox browser ?
Hello klaus.krpano,
I thought my problem was resolved but testing my app on firefox I got same probleme that before. maxpixelzoom does not working on firefox browser ?
I found what i'm looking for in this topic : https://krpano.com/forum/wbb/inde…&threadID=15997,
Thanks a lot for all explanations klaus.krpano
Apologies for jumping in but where are the screenshots saved when viewing the tour on a pc? I'd like to take some high res shots and save them to a directory.
Hi @andrew22222,
I'm using this example : https://krpano.com/viewsource.htm…api-example.xml.
So when this layer is clicked :
this function is executed
So I'm working on Ubuntu 20.04, my image is downloaded and I can find in "/home/username/Téléchargements"
I hope it will help you.
Hi klaus.krpano,
krpano.webGL.context.getParameter( gl.MAX_RENDERBUFFER_SIZE ) give me 16384, you told me
"max_renderbuffer_size variable will contain the maximum width or height.", but when I execute :
var screenshotwidth = 16384;var screenshotheight = 9637;
var screenshotcanvas = krpano.webGL.makeScreenshot(screenshotwidth, screenshotheight, true, "canvas", 0, null, sizeinfo, makeScreenshotCache);
My screenshot has 7509px / 4417px, I thought I have exceeded the maximum value, so max_renderbuffer_size does not
contain the maximum width. did i make a mistake ? Is there another way to have max width value supported for my browser/systems ?
I tried to use
but when downloading image I got different size. I show you my code :
var gl = krpano.webGL.context;
var max_renderbuffer_size = gl.getParameter( gl.MAX_RENDERBUFFER_SIZE );
screenshotwidth = max_renderbuffer_size;
screenshotheight = max_renderbuffer_size / (16/9);
var screenshotcanvas = krpano.webGL.makeScreenshot(screenshotwidth, screenshotheight, true, "canvas", 0, null, sizeinfo, makeScreenshotCache);
When I display max_renderbuffer_size (using alert()) on my browser I got 16384, why my final image is equal to 7679px x 4319px. Is there something that i didn't understand or missed ?
Thank you for giving me your time !
Thanks for your reply Klaus,
how can I get max capture size according browsers/systems, I mean which params should I have to define max size. You told : "you want, but you're will be limited by the browsers/systems max", so I need to know which device (desktop or mobile), what are the others params/limitations that allow me to define max size.
Thank's a lot for your explation
Hello everyone,
I'm using this example : https://krpano.com/docu/plugininterface/….makeScreenshot. It work's well to have a 4000 x 2250 resolution, however a Z1 image (RICOH THETA camera) has better resolution (6720 x 3360) than SC2 image (3840 x 1920).
My first question is
How can I have correct width and height of mekescreenshot_hires() according to the device. I can't set 4000 * 2250 for all captured image because I would like to have different size beetween my original image (can be equal to 7000 x 3500 or 5376 x 2688 or smaller) and image that was made by makescreenshot_hires(). Is it possible ?
My second question is
I put code generated by krpano. So, multires="512,1024,2176", how can I convert "2176" (multires value) to flat image ?
<preview url="preview.jpg" /><image prealign="-0.00|38.40|-0.00" if="!(webvr.isenabled OR device.mobilevr)">
<cube url="%s/l%l/%v/l%l_%s_%v_%h.jpg" multires="512,1024,2176" />
</image><image prealign="-0.00|38.40|-0.00" if="webvr.isenabled OR device.mobilevr">
<cube url="vr/pano_%s.jpg" />
</image>
Thank's a lot
Hello everyone,
I'm using this example : https://krpano.com/docu/pluginint….makeScreenshot. It work's well to have a 4000 x 2250 resolution, however a Z1 image (RICOH THETA camera) has better resolution (6720 x 3360) than SC2 image (3840 x 1920).
My first question is
- Why I got same dimensions on my hires screenshot with two input images that have different dimensions
My second question is
- In the example there is 4000 x 2250, any screenshot made can't be higher
My third question that is related to the second one is
- Can I have better resolution with high image using hires screenshot
Thank's a lot
Thank you Klaus, it was maxpixelzoom, it was set to 2. I update value using set(view.maxpixelzoom,0); to avoid this issue. Have a nice day !
I'm using Krpano API to make high resolution screenshot.
Here is what I want to obtain : https://krpano.com/releases/1.20.9/viewe…tml5=webgl+only,
but during implementation, I got a problem when zooming.
I zoom in my picture, I click on "Make Hi-Res Screenshot" and the picture which appear is zoom out.
I gave you an example here:
I want to get this picture when clicking in make hires button (look first file called "screen1.png").
I got a zoom out picture (look second file called "screen2.png")
By trying the given example by Krpano I don't have the same issue,
I would like to know where is the problem and if there is a relation between device.pixelratio and the example.
Thank's in adance.