KristofferStrube / Blazor.SVGEditor

A basic SVG editor written in Blazor.
https://kristofferstrube.github.io/Blazor.SVGEditor/
MIT License
306 stars 51 forks source link

Any idea on how to export such an SVG to some image format (jpg, png...)? #9

Closed ABIOLI-COM closed 2 years ago

ABIOLI-COM commented 2 years ago

It's just all in the title... I would like to save 'thumbnails' of what is created by users, so to give them previews... There should be an easy way, blazor or javascript, to generate an image from an svg... but I cannot find it... :-( A

KristofferStrube commented 2 years ago

It's not related to this project itself, but on that note... Generally what other people have done in .NET is either to use one of the projects specifically for this like Aspose but most of these are not feature complete for things like custom fonts but should be fine for what my SVG Editor supports editing. What others that wish full support do is to have a headless instance of Chromium on a server and then generating a screenshot of a SVG from that.

ABIOLI-COM commented 2 years ago

Thanks again for your support! A