html-to-image
html-to-image copied to clipboard
Canvas element doesnt appear in the image
When capturing a page using react/next js canvas elements doesn't appear.
👋 @jasjamjos
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.
@jasjamjos Same problem. I solved this by adding preserveDrawingBuffer: true to my canvas element
@jasjamjos Same problem. I solved this by adding
preserveDrawingBuffer: trueto my canvas element
Thank you for the answer, adding preserveDrawingBuffer:true as an option to canvas.getContext did the trick for me.