What happens when a JPG becomes AVIF?
The browser first decodes the JPG into raw RGBA pixels. If a longest-edge limit is selected, those pixels are resized while preserving the original aspect ratio. A WebAssembly encoder then compresses the resulting 8-bit pixel buffer into a still AVIF image.
This is a real decode-and-re-encode operation-not a filename change. Because JPG is already lossy, converting it cannot reconstruct texture or color information that the original JPG encoder removed.
Metadata and color behavior
Canvas-based pixel processing does not carry EXIF, GPS, XMP, comments, embedded thumbnails, or the original ICC profile into the result. Browser decoding and color management can also produce small visual differences.