You are not logged in.

Dear visitor, welcome to Forum. If this is your first visit here, please read the Help. It explains in detail how this page works. To use all features of this page, you should consider registering. Please use the registration form, to register here or read more information about the registration process. If you are already registered, please login here.


Tuesday, May 21st 2019, 3:11pm


Screenshot(width, height, hotspots, type, jpegquality, crop, sizeinfo, cache)

Tell me, please, how to write a crop correctly?


Tuesday, May 21st 2019, 3:40pm

screenshot(width, height, hotspots, type, jpegquality, { x: 100, y: 100, w: 400, h: 300 }, sizeinfo, cache)….makeScreenshot



Posts: 3,194

Location: Netherlands

Occupation: Krpano custom coding / Virtual Tours / Photography / Musician / Recording engineer

  • Send private message


Tuesday, May 21st 2019, 3:42pm


edit: never mind.. see answer from indexofrefraction ^

when you look in the examples folder in your krpano download package there is an example.
line 53 in makescreenshot-api-example.xml:

Tuur *thumbsup*

This post has been edited 2 times, last edit by "Tuur" (May 21st 2019, 6:09pm)


Wednesday, May 22nd 2019, 8:09am

Thanks for answers!at makescreenshot-api-example.xml: I tried to do so
onclick="makescreenshot(0,0,true,jpg,0.85,{x: 100, y: 100, w: 400, h: 300 },);"
But it saves a snapshot of the entire screen.

A, 53 lines - tried so
var screenshotcanvas = krpano.webGL.makeScreenshot(0, 0, true, "canvas", 0, {x:200, y:300, w:500, h:500 }, sizeinfo, krpano.makeScreenshotCache);
This oddly saves the image size 155x155

Where am I wrong?

This post has been edited 3 times, last edit by "San7" (May 22nd 2019, 8:48am)

Similar threads