-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Image of svg element from DOM is not embedded in png. #396
Comments
I have the same problem |
Hey @tanrich I solved this issue using this js file. You can try using this file. Thanks |
I don't understand. What's the difference. Thanks. |
Somewhere I found this file and suggested to try using this one and that worked for me. I don't remember exactly what changes I made. |
Hi! Your solution great work with fill: url(#namePattern) but not work with stroke: url(#namePattern), maybe you can add this feature, please? |
For me what worked was installing html-to-image and not using |
https://root.lacony.ru/eclipse i try use html-to-image there (when click on one object) but its work bad, if dom-to-image just wrong work with svg, this lib create strange gradients |
Hi everyone,
![expected](https://cdn.statically.io/img/user-images.githubusercontent.com/47835599/138009394-74b11b53-fbb6-44dd-a000-165833850bd1.PNG)
![html](https://cdn.statically.io/img/user-images.githubusercontent.com/47835599/138009395-b223b1c1-7166-40ea-a36d-a26b9e7faf14.PNG)
![result](https://cdn.statically.io/img/user-images.githubusercontent.com/47835599/138009396-e2e6cd41-e21c-41a9-9e12-4d0093da352a.png)
My DOM contains svg element-under div element, which is created using javascript. And that svg has image element,as shown in attached image(html.png). With this domtoPng, in downloaded png file, I am able to see all elements from dom, except this image of svg,(which I set it as background for graph) .
When I run my app, I can see the image (i.e included in my dom) as shown in expected image.But png file, that I got by downloading using domtopng excludes that image.You can check on result.png, that shows missing
image.
Please let me know, if anyone comes with such issue.
Thanks
Binita Shrestha
The text was updated successfully, but these errors were encountered: