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

108
Views
Descargar imágenes de un sitio web con js como base64

Lo intenté así, pero aparece este error: ORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. . Cómo puedo arreglar eso.

 async function test(img){ return new Promise((resolve, reject) => { img.crossOrigin = 'use-credentials'; img.onload = function(){ let canvas = document.createElement('canvas'); let ctx = canvas.getContext('2d'); canvas.height = img.naturalHeight; canvas.width = img.naturalWidth; ctx.drawImage(img,0,0); let data = canvas.toDataURL('image/jpeg') resolve(data) } }) } console.log(await test(document.querySelectorAll('img')[0]))
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!