I’m using html2canvas to convert the div into an image. To save the image I have to go right-click and save it. Is it possible to download the image without right-clicking?
I tried like :
<a href="<canvas style='width: 1903px; height: 886px;' width='1903' height='886'></canvas>">DOWNLOAD</a>
but it doesnt work.
<div id="output"> <canvas style="width: 1903px; height: 886px;" width="1903" height="886"></canvas> </div>
Any help is appreciated
Here is Solutions:
We have many solutions to this problem, But we recommend you to use the first solution because it is tested & true solution that will 100% work for you.
I think you need just to select the canvas and save it as an image, you can’t download it because it is not an image yet.
Note: Use and implement solution 1 because this method fully tested our system.
Thank you 🙂