cnr-isti-vclab / openlime

Web-based, advanced images viewer (RTI, multispectral, BRDF, etc. )
GNU General Public License v3.0
23 stars 6 forks source link

[Feature request] Include annotation in snapshot #34

Open EloiGattet opened 2 years ago

EloiGattet commented 2 years ago

Hi! Would it be possible to capture also the annotation layer in the "snapshot" tool?

If you got here searching why the snapshot tool gives you a blank png : for the "snapshot" tool to work, the option preserveDrawingBuffer needs to be activated when creating the OpenLIME.Viewer such as :

const lime = new OpenLIME.Viewer('.openlime', {canvas: { preserveDrawingBuffer: true}}); (Thanks @ponchio for the solution on this previous "issue-which-isn't-really-one" 😃

Cheers

EloiGattet commented 2 years ago

Hi! I would like to add to this enhancement request the possibility to capture the measures made with the ruler tool in the snapshot please!