Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG to PNG export #7

Open
Aaronontheweb opened this issue Jun 9, 2021 · 1 comment
Open

SVG to PNG export #7

Aaronontheweb opened this issue Jun 9, 2021 · 1 comment
Labels
feature:export Image export

Comments

@Aaronontheweb
Copy link
Member

No description provided.

@Aaronontheweb Aaronontheweb added the feature:export Image export label Jun 9, 2021
@KristofferStrube
Copy link
Contributor

There are packages that can convert SVG to PNG in the backend as you probably know.

Another option could be to use an HTML Canvas to draw instead of adding SVG elements to the DOM. The nice thing about this is that you can get the image directly from the canvas without going to the server first. This would currently require some JSInterop to write to the Canvas and fetch the image from it, but there are some nice Blazor Canvas packages out there.
I hope that they will add native support for the Canvas API to Blazor Wasm at some point and I think showing examples of how it can be useful will probably only help towards that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature:export Image export
Projects
None yet
Development

No branches or pull requests

2 participants