Menu

I got tired of uploading images to converter sites, so I made the browser do it
πŸ“°

I got tired of uploading images to converter sites, so I made the browser do it

DEV Community: javascriptΒ·Nawal ShresthaΒ·4 days ago
#MeVfiPe6
#devtojavascript#devto#dev#canvas#file
Long article (566 words) β€” no AI summary yet.
Reading 0:00
15s threshold

Almost every image I save from the web now comes down as a WebP. That was fine until it wasn't. I would try to open one in older software and it would refuse. Or I would attach one to a form and the site would only accept PNG or JPG. So I did what everyone does: I searched for a converter, uploaded my file to a server I knew nothing about, waited in a queue, and downloaded it back.

I did that more times than I can count before the obvious thing landed on me. My browser was already decoding WebP. Chrome, Edge and Firefox all display it on their own. If the browser can show the file, it can convert it. The upload, the queue, the stranger's server β€” none of that was necessary. I was sending my files across the internet to have a job done by software that was already running on my own machine.

So I tested it.…

Continue reading β€” create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.