Groups keyboard shortcuts have been updated
Dismiss
See shortcuts

Exporting annotation visualization

26 views
Skip to first unread message

Gilles Jacobs

unread,
May 14, 2020, 8:55:20 AM5/14/20
to webanno-user
Dear maintainers, Richard

Is there a way to export the annotation view as an image? Preferably in vector format with text intact for quality reasons.

Brat used to have this option, but it is not present in WebAnno as far as I can tell.

This would come in handy for the creation of scientific publications as well as annotation guidelines.
Right now I use screenshots for rasterized images, which limits the visual quality and is limited by the browser resolution.

For vector images, I tried converting the HTML page to PDF with bad results.

Is there any way to drive a browser to get a clean .svg output that you know off?
Or are there any commands I can issue to the running server?

Kind regards
Gilles

Richard Eckart de Castilho

unread,
May 16, 2020, 3:56:17 PM5/16/20
to Gilles Jacobs, webanno-user
Hi,

> On 14. May 2020, at 14:55, Gilles Jacobs <gillesm...@ugent.be> wrote:
>

> Is there a way to export the annotation view as an image? Preferably in vector format with text intact for quality reasons.


currently, we do not support this feature. However, having had a quick look at
how this is implemented in brat, I believe we might be able to add such a
functionality as well. Best would be, you open an issue in our tracker so
we keep it on our radar and you get notified when we work on it.

https://github.com/webanno/webanno/issues

or

https://github.com/inception-project/inception/issues

Basically, what the brat implementation does is this:

- the browser sends the SVG it has rendered back to the server
- the server adds a wrapper around the SVG which includes the CSS styles
and fonts
- the server then offers the result again to the browser to download

If you are *really* into it, you could do that process manually using the
development mode of your web browser (maybe except the font part... but
afaik we do not use any custom fonts in WebAnno/INCEpTION anyway, so that
should not be needed).

I imagine a JavaScript crack might even be able to cobble together a
bookmark script or a Chrome plugin or something like that pretty easily.
But support directly in the application would of course be better...

Wrt. plugins... I didn't try it, but maybe one of these fits your needs:

https://chrome.google.com/webstore/search/svg%20export?hl=en-GB

Cheers,

-- Richard


Gilles Jacobs

unread,
May 18, 2020, 4:06:41 AM5/18/20
to webanno-user
Hi

I added a feature request to the WebAnno issue tracker on GH @ https://github.com/webanno/webanno/issues/1683 .

For now this plugin https://chrome.google.com/webstore/detail/export-svg-with-style/dkjdcaddoplepioppogpckelchefhddi seems to work great.

Thanks for the reply!

Kind regards
Gilles

On Saturday, May 16, 2020 at 9:56:17 PM UTC+2, Richard Eckart de Castilho wrote:
Hi,
Reply all
Reply to author
Forward
0 new messages