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

168
Views
displaying a user image using JavaScript for save with html2canvas converting from blob to image

I am displaying a user image using JavaScript but the resulting URL is a 'blob' which means that when I try and save it using html2canvas I get a blank, I believe this is because the output is currently a blob?

I have also tried adding allow taint to html2canvas, this does indeed save the image but changes the dimensions and squashed the image.

var loadFile = function(event) {
    var image = document.getElementById('output');
    image.src = URL.createObjectURL(event.target.files[0]);
};
<p><input type="file"  accept="image/*" name="image" id="file"  onchange="loadFile(event)" style="display: none;"></p>
<p><button><label for="file" style="cursor: pointer;">Upload Image</label></button></p>

<img id="output" style="width:50%;" />

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!