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

Software Engineer for AI Training Data (School Specific)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Python)

@ G2i Inc | Remote

Software Engineer for AI Training Data (Tier 2)

@ G2i Inc | Remote

Data Engineer

@ Lemon.io | Remote: Europe, LATAM, Canada, UK, Asia, Oceania

Artificial Intelligence – Bioinformatic Expert

@ University of Texas Medical Branch | Galveston, TX

Lead Developer (AI)

@ Cere Network | San Francisco, US