bubkoo / html-to-image

βœ‚οΈ Generates an image from a DOM node using HTML5 canvas and SVG.
MIT License
5.66k stars 524 forks source link

Empty image data #156

Closed robertnicjoo closed 2 years ago

robertnicjoo commented 3 years ago

Expected Behavior

Getting screenshot

Current Behavior

Not getting screenshot!

Possible Solution

?!

Steps To Reproduce

Code below πŸ‘‡πŸ»

Additional Context

--

Your Environment

var node = document.getElementById('pritable');

htmlToImage.toPng(node)
.then(function (dataUrl) {
  console.log('test', dataUrl);
  download(dataUrl, 'my-node.png');
});

Result of console.log('test', dataUrl);

<img src="data:,">
vivcat[bot] commented 3 years ago

πŸ‘‹ @robertnicjoo

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.

ChinmayDeyUI commented 3 years ago

Same problem me too for both png and jpg

vivcat[bot] commented 3 years ago

Hiya! This issue has gone quiet. Spooky quiet. πŸ‘» We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

Thanks for being a part of the Antv community! πŸ’ͺπŸ’―

mgw-sbex commented 3 years ago

Could you update the console.log output, it doesn't look correct based on the code. Thanks

vivcat[bot] commented 3 years ago

Hiya! This issue has gone quiet. Spooky quiet. πŸ‘» We get a lot of issues, so we currently close issues after 60 days of inactivity. It’s been at least 20 days since the last update here. If we missed this issue or if you want to keep it open, please reply here. You can also add the label "not-stale" to keep this issue open! As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request.

Thanks for being a part of the Antv community! πŸ’ͺπŸ’―

vivcat[bot] commented 2 years ago

Hey again! It’s been 60 days since anything happened on this issue, so our friendly neighborhood robot (that’s me!) is going to close it. Please keep in mind that I’m only a robot, so if I’ve closed this issue in error, I’m HUMAN_EMOTION_SORRY. Please feel free to comment on this issue or create a new one if you need anything else. As a friendly reminder: the best way to see this issue, or any other, fixed is to open a Pull Request. Thanks again for being part of the Antv community! πŸ’ͺπŸ’―

vivcat[bot] commented 1 year ago

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.