Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

135
Views
Download generate photo to file with link using javascript

I Generate Photo on Website With JavaScript and use this code to download photo to my local computer but now I need to download it in file with link to use it.

const download = document.getElementById("download");
  download.addEventListener("click", () => {
    const canvas = document.getElementById("result");
    const canvasContent = canvas.toDataURL();
    const a = document.createElement("a");
    document.body.appendChild(a);
    a.href = canvasContent;
    a.download = "photo.png";
    a.click();
    document.body.removeChild(a);
  });
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!