Convert between JPG, PNG, WebP, AVIF, and BMP
An image is fundamentally just a giant array of raw RGB pixel data. Formats like JPG, PNG, or WebP are simply different compression algorithms (languages) used to store that array efficiently on a hard drive.
Converting a file is not as simple as changing the .jpg extension to .png. The computer has to completely translate the data from one mathematical language to another.
When you convert a JPG to a PNG, the engine performs two massive mathematical steps.
First, it Decodes the JPG, running the inverse Discrete Cosine Transform to extract the compressed data back into a raw, uncompressed RGB pixel array in the computer's memory.
Second, it Encodes that raw array using the PNG specification (which uses Deflate compression) to generate a brand new file structure.
Because this tool runs in the browser via an OffscreenCanvas, the decoding and encoding algorithms are natively accelerated by the browser's core C++ rendering engine.
This makes the translation process incredibly fast, completely avoiding the need to upload your heavy photos to a cloud server to run a command-line tool like ImageMagick.
If you simply rename 'photo.jpg' to 'photo.png' in your file explorer, what happens?