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

194
Views
html2canvas not capturing image correctly

i am trying to use html2canvas to capture images of divs. i have two divs in one dive i have image which i want to capture with some styling but html2canvos download empty image file. in second div i have some text which i want to capture but when i give height and widht in html2canvas it minimise the text in image.

html2canvas($('#front_image')[0], {
                        scale: 3,
                        width: 1819,
                        height: 1311
                    }).then(function(canvas) {
                            var a = document.createElement('a');
                            a.href = canvas.toDataURL("image/png");
                            $("#front_view_image").val(a.href);
                            a.download = 'myfile.png';
                            a.click();
                    });
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!