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

156
Views
How to append image canvas to img?

I crop the image and put it into canvas:

 image.addEventListener('load', () => {
            ctx.drawImage(
                image,
                0,
                0,
                dw,
                dh, 
                0,
                0,
                dw,
                dh,
            );
        });

How to get cropped image and put it to body -> img?

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

HTML canvas elements have a function called toDataURL(), which returns a data URL representation of the canvas pixels.

Call the toDataURL() function on the canvas element and set the image source to the data URL.

image.src = canvas.toDataURL();

Referance

  • toDataUrl()
about 4 years ago · Juan Pablo Isaza Report
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!