Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

192
Visualizações
Failed to convert Canvas to blob. Tainted canvas may not be exported

Abstract:

Canvas convert to blob is failing.

Introduction: I have a task to generate thumbnail when a user uploads a video.

Approach I took:

  1. I can fetch the video element from input field. (if video is being uploaded for the first time) Or there can be a file that gets loaded in video element when we update information about the video. (Let's say, we want to capture the frame or upload it from local Directory)

  2. Drew the current frame on canvas.

  3. Tried to convert it into a blob.

At 3rd step, I am getting this error that is:

Failed to convert Canvas to blob. Tainted canvas may not be exported

It's something new and I never tried this. When I tried to use toDataUrl (ignore syntax) it gave me the same kind of error.

How can I generate a thumbnail from video and if it's possible then can I fill "upload thumbnail" file input field with generated image or blob?

What's the preferred way of doing something similar?

about 4 years ago · Juan Pablo Isaza
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda