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

Any browser: SVG tags not rendered #402

Closed
jeanbaptistedeborman opened this issue Jun 17, 2014 · 4 comments
Closed

Any browser: SVG tags not rendered #402

jeanbaptistedeborman opened this issue Jun 17, 2014 · 4 comments

Comments

@jeanbaptistedeborman
Copy link

No description provided.

@stefanzueger
Copy link

I've recently come accross the same issue as well. I haven't had the time to fix it, but one easy solution could be to render the svg into an image and then draw the image to the canvas.
something like:

var img = new Image();
img.src = 'data:image/svg+xml;base64,' + window.btoa(svgElement.outerHTML);
img.onload = function () {
    // document.body.appendChild(img);
    // render image to canvas context.drawImage()
};

@jeanbaptistedeborman
Copy link
Author

I could not make it work. Shouldn't we use canvg ? https://code.google.com/p/canvg/

@stefanzueger
Copy link

There is already such an issue opened with a working solution:
see issue #95

@usmonster
Copy link
Contributor

@jeanbaptistedeborman @niklasvh Can this issue be closed, since it's a duplicate of #95?

@niklasvh niklasvh closed this as completed Sep 1, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants