skip to Main Content

Html – Canvas resolution and export resolution

I have canvas which is width="600px" and height="500px". then I show the image(1200px and 1000px) on this canvas ctx.drawImage(img,600,500); finally export with this script. var a = document.createElement('a'); a.href = mycanvas.current.toDataURL('image/jpeg', 0.85); In this case jpg's final resolution is 600px…

VIEW QUESTION
Back To Top
Search