How to convert image with .png format to .jpg format in javascript Filereader?
15,471
This is definitely possible through HTML5 canvas element. Just draw the image in a canvas. (Make the canvas element hidden if you want). Then use canvas.toDataURL("image/jpeg");
to get the Base64 notation of image in the required format.
Check out : http://davidwalsh.name/convert-canvas-image
Author by
Marimuthu
Updated on June 11, 2022Comments
-
Marimuthu almost 2 years
I have developed web application,I am using File reader for pick the image,In that i have to convert the image .png format to .jpeg format.Please help me anyone to complete the task. Thanks in Advance.