Open prasannappt opened 6 years ago
Hi.
You need this option enabled -
preserveDrawingBuffer: true
and here is my javascript code for save image on rightclick on it -
function saveimage(){ var link = document.getElementById('link'); link.setAttribute('download', 'cam.png'); link.setAttribute('href', document.getElementById('canvas').toDataURL('image/png').replace("image/png", "image/octet-stream")); link.click(); }
and in html -
`
`
Hi All,
Am using this JS
please give me a solution, am stuck with past one week.
Thanks