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

162
Vistas
Getting image data out of base64

I would like to get the image data part out of a base64 image, to alter it. I tried this : (origin : How can I strip the data:image part from a base64 string of any image type in Javascript)

let originalImage = myBase64Image
let strImage = originalImage.replace(/^data:image\/[a-z]+;base64,/, "");

The problem with the snippet is that when you alter strImage that you don't alter the originalImage. Does anyone now a way of converting the strImage back to a base64 image or a way to directly alter the image data of the originalImage?

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