From michael.grauer at kitware.com Mon Jul 11 21:09:23 2016 From: michael.grauer at kitware.com (Michael Grauer) Date: Mon, 11 Jul 2016 21:09:23 -0400 Subject: [Geojs-users] screenshotting minerva from a browser Message-ID: Hi GeoJs-ers and others, For the Gumbo project it seems our partners want the ability to screenshot the contents of the current Minerva IFrame from the browser, and then export that screenshot via JS. They pointed me to this library which builds up a screenshot from the DOM, but it didn't seem to work for any webgl example pages I threw at it (with admittedly very little time put in). http://html2canvas.hertzen.com/screenshots.html Has anyone run across this or have any ideas here, such as for an approach or to say that this will never work? My thought is that we could use this library to screenshot the DOM and export the webgl canvas to an image that was somehow included in that DOM or screenshot in the place of the canvas, but clearly it isn't well thought out or empirically tested. Thanks for your help or suggestions, Mike -------------- next part -------------- An HTML attachment was scrubbed... URL: From jonathan.beezley at kitware.com Mon Jul 11 21:29:26 2016 From: jonathan.beezley at kitware.com (Jonathan Beezley) Date: Mon, 11 Jul 2016 21:29:26 -0400 Subject: [Geojs-users] screenshotting minerva from a browser In-Reply-To: References: Message-ID: I looked into doing this a couple of months ago for Emory. For a couple of reasons, it isn't currently possible. 1. Loading textures from cross origin requests taints the canvas, so the browser won't let you access the pixels externally. The only way around this is to proxy all of the tile requests through the main web server. I'm not sure how all of that works through iframes if they are being served from a different origin as well. 2. Dumping pixel data from a webgl context relies on loading them from a framebuffer (gl.readPixels). From what David told me at the time, geojs doesn't use a framebuffer. I believe it's possible to create a temporary framebuffer for this purpose, but I know almost nothing about it. In any case, it will require additional infrastructure in geojs to make it possible; a call to an external library won't help unfortunately. On Mon, Jul 11, 2016 at 9:09 PM, Michael Grauer wrote: > Hi GeoJs-ers and others, > > For the Gumbo project it seems our partners want the ability to screenshot > the contents of the current Minerva IFrame from the browser, and then > export that screenshot via JS. > They pointed me to this library which builds up a screenshot from the DOM, > but it didn't seem to work for any webgl example pages I threw at it (with > admittedly very little time put in). > > http://html2canvas.hertzen.com/screenshots.html > > Has anyone run across this or have any ideas here, such as for an approach > or to say that this will never work? > > My thought is that we could use this library to screenshot the DOM and > export the webgl canvas to an image that was somehow included in that DOM > or screenshot in the place of the canvas, but clearly it isn't well thought > out or empirically tested. > > Thanks for your help or suggestions, > Mike > > > > _______________________________________________ > Geojs-users mailing list > Geojs-users at public.kitware.com > http://public.kitware.com/mailman/listinfo/geojs-users > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Thu Jul 21 14:40:01 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Thu, 21 Jul 2016 18:40:01 +0000 Subject: [Geojs-users] Interesting project on storytelling using map Message-ID: https://mapstory.org/ -- Initially funded by ERDC. - Aashish -------------- next part -------------- An HTML attachment was scrubbed... URL: From aashish.chaudhary at kitware.com Tue Jul 26 11:22:52 2016 From: aashish.chaudhary at kitware.com (Aashish Chaudhary) Date: Tue, 26 Jul 2016 15:22:52 +0000 Subject: [Geojs-users] 4th Annual Big Data Conference Message-ID: Anyone going? http://globalbigdataconference.com/70/santa-clara/4th-annual-global-big-data-conference/event.html - aashish -------------- next part -------------- An HTML attachment was scrubbed... URL: