Answer the question
In order to leave comments, you need to log in
Ways to convert images to base64 in javascript?
Good evening!
How to convert image to base64 in JS browser.
I found a way using canvas, they say it increases (more than 1/3) the size.
In general, it doesn’t matter how you compress an image and convert it to base64 on the client or server side (node.js), the main thing is to get base64 in the end.
Thank you! :)
ps: more precisely, I'm looking for a way to convert an image to a string, so that I can use it on the page later. Is there something alternative to base64?
Answer the question
In order to leave comments, you need to log in
Found a way using canvas, they say it increases (more than 1/3) the size
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question