html-to-image icon indicating copy to clipboard operation
html-to-image copied to clipboard

Copy to Clipboard

Open realtouseef opened this issue 2 years ago • 2 comments

Is there any option to copy the image to the clipboard? Kindly guide me. If there's not, would love it if it is added. Thank you.

realtouseef avatar Jun 28 '22 12:06 realtouseef

👋 @realtouseef

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.

biiibooo[bot] avatar Jun 28 '22 12:06 biiibooo[bot]

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! 💪💯

biiibooo[bot] avatar Jul 19 '22 02:07 biiibooo[bot]

I do this:

const blob = await htmlToImage.toBlob(imageNode)
imagenMap[imagenId] = blob
let data = [new window.ClipboardItem({ [blob.type]: blob })];
await navigator.clipboard.write(data)

titiloxx avatar Dec 27 '22 22:12 titiloxx