Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

save image jpg javascript

<a download="example.jpg" href="" onclick="downloadCanvas(this);">Download example.jpg</a>
async function downloadCanvas(el) {
  const imageURI = canvas.toDataURL("image/jpg");
  el.href = imageURI;
};
Source by levelup.gitconnected.com #
 
PREVIOUS NEXT
Tagged: #save #image #jpg #javascript
ADD COMMENT
Topic
Name
2+2 =