Comments (4)
Thanks for opening your first issue here! If you're reporting a 🐞 bug, please make sure you include steps to reproduce it.
To help make it easier for us to investigate your issue, please follow the contributing guidelines.
We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can.
from html-to-image.
+1
@manuelpoelzl did you find any solution ?
from html-to-image.
@Dhan3777
Not really, at least not directly.
I'm currently tinkering with the jsdom library, which is a great way to get an HTML element.
However, when generating with toJPG
, an error is thrown that HTMLCanvas is not defined.
I haven't found a way around the error yet, will update you here as soon as I find out!
from html-to-image.
Update:
I ended up modifying the HTML on the server and send the HTML string back to my react app.
There I use the DOMParser to convert the said stringt to an HTMLElement which I then pass to the toPng
function of this lib.
There seems to be a problem tho, that the HTML can not be converted, since I get back an empty data url.
In case you're interested, I opened #449
from html-to-image.
Related Issues (20)
- Images are sometimes skipped via iOS HOT 15
- Crash on svg with <use> tags referencing external svg files HOT 4
- Too small test images leads to falsely successful tests
- A margin-top style on a sub-element clips the element HOT 1
- Large number of resource requests in a short period of time HOT 1
- toPng keeps generating the first downloaded ref even though refs passed are different HOT 4
- toPng and toJpeg skip background-image on firefox on the first download HOT 4
- backgroundColor: 'var(--blue)' doesn't render on Chrome HOT 2
- (love) Just to tell you how great your software is HOT 1
- Graph screenshots don't save in Safari HOT 1
- Using url from firebase storage as src for img tag, results in error Object event HOT 1
- Variable font properties are not respected HOT 1
- `ComputedStyle` set to all elements, but it causes SVG `use` element can't override reference object style, so generate wrong style image. HOT 2
- When I call toPng for a second time on a different ref, the image is still old HOT 2
- tailwind's backdrop-blur-md utility class dissapeard on toPng, toJpeg rendering option HOT 2
- export image very slowly when use custom fonts HOT 2
- Unable to generate image from valid HTML - getting empty Image HOT 9
- Issue with SVG containing "url(#)" HOT 1
- PNG image rendering as blank on IOS 13 view option HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html-to-image.