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

160
Views
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
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!