I am actually using a face detection (with eyes, mouth, face) library in JQuery. I have manipulated/changed many things (such as length, width, blur etc) on the pictures to see what are the most perfect settings for a picture to have a well-detected face on it. It is really easy to change property of the image in JS BUT the issue I am facing is that :
the face detection on a .jpg picture works way better than for a .png picture.
Problem 1 : the picture is uploaded using <input type="file" accept="image/*">
so maybe I have to change the extension before the picture is really uploaded on the page
Problem 2 : how to do that. I read on internet the difference between .jpg and .png but how to change it ? I know that jpg is lighter but I don't care.
To summarize: Is it possible to change the extension of a picture BEFORE it is uploaded on a webpage ?
ps: The image is loaded on Canvas, I don't know if it changes anything.