Dec. 14, 2023, 3:02 p.m. | Code Boxx

DEV Community dev.to

Yes, we can directly convert image formats in modern browsers. No need to upload and use server-side scripts.





THE HTML



<form id="cForm" onsubmit="return convert.read()">
<label>SELECT FORMAT</label>
<select id="cFormat">
<option value="webp">WEBP</option>
<option value="jpeg">JPG</option>
<option value="png">PNG</option>
<option value="gif">GIF</option>
</select>

<label>CHOOSE FILE</label>
<input type="file" id="cFile" accept="image/*" required>

<input type="submit" value="Go">
</form> …

beginners browsers conversion form format gif html image javascript modern scripts server simple type value webdev

Founding AI Engineer, Agents

@ Occam AI | New York

AI Engineer Intern, Agents

@ Occam AI | US

AI Research Scientist

@ Vara | Berlin, Germany and Remote

Data Architect

@ University of Texas at Austin | Austin, TX

Data ETL Engineer

@ University of Texas at Austin | Austin, TX

Consultant Senior Power BI & Azure - CDI - H/F

@ Talan | Lyon, France