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

89
Views
lienzo que no agrega imagen desde url (base 64)

Estoy trabajando en un proyecto en el que quiero crear una vista previa mínima para el lienzo. entonces, cuando ocurre algún cambio en el lienzo, por ejemplo: el usuario agregó texto al lienzo, el lienzo se convertirá en DataURL, y luego quiero agregar esta base64 a otro lienzo, pero no funciona, no tengo idea de cómo puedo solucionar este problema. ?

 const initCanvas = useCallback((ref: any, design: FabricCanvas) => { // @ts-ignore const canvas = new fabric.StaticCanvas(ref, { width: previewCanvasProperties.width, height: previewCanvasProperties.height, left: previewCanvasProperties.left, top: previewCanvasProperties.top, }); var imageData = new Image(); imageData.src = dataUrl; imageData.onload = function () { var imgInstance = new fabric.Image(imageData); canvas.add(imgInstance); canvas.renderAll(); }; // @ts-ignore canvas.renderAll(); return canvas; }, []); return { initCanvas, }; };
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!