Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

202
Vistas
Wait till file is fully loaded in browser

At first I want to mention that I'm asking about JS in browser, not Node.js.

I read file (image) from file input (<input type="file" />) and I need to draw it on canvas and do some low level operations on it. There's no problem and everything works fine if image is already in memory when I run an operation but if I'm reading it like I wrote before (from user's fs via input) I don't know when to run the operation. If I start it immediately then framebuffer is incomplete*.

Due to other parts of system I don't read image bit by bit. Instead I create img tag with src attribute set to URL created via URL.createObjectURL with the file object passed to it and then draw that image on canvas. I'd prefer not to change that because this is gonna be pretty big change.

*It's an error from library glfx.js if it gonna help.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda