-
Notifications
You must be signed in to change notification settings - Fork 572
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
Unable to generate image from valid HTML - getting empty Image #449
Comments
I also have same issue |
Is your element a |
In my case it is a |
Can't solve it the way you described @Ninamma. <div id="mainNode" style="background-color: red;display: flex">
<h2>TEST</h2>
</div> All I get is still |
Try adding height and width to the container where HTML is wrapped. |
Unfortunately I still get the same result, even with width and height specified, I even tried to wrap this div with another div that has width and height specified, without success. <div id="mainNode" style="background-color: red;display: flex; height:350px; width:900px;">
<h2>TEST</h2>
</div> |
Solved: |
This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread. |
I'm unable to get any image from a valid HTMLElement.
The HTML looks fine but the
toJPG
andtoPNG
functions return an empty data url .Expected Behavior
The HTML should be converted to an image and the data url should get returned.
Current Behavior
The dataUrl is
data:,
for a perfectly fine HTMLPossible Solution
N/A
Steps To Reproduce
documentElement
toPng
function with the said elementdata:,
Your Environment
The text was updated successfully, but these errors were encountered: