Codecs & Alpha
5 min read
Alpha flattening — what happens to transparency when you convert PNG to JPG
JPG refuses to carry an alpha channel. When you convert a PNG (or WebP, or AVIF) with transparency to JPG, the transparent and partially-transparent pixels in your source need to land on something — and that something defaults to a matte backing.
WASM Pipeline
History & Formats
6 min read
Animated Images: The Longevity of GIF
Despite being a technical relic of the 1980s, the GIF remains the undisputed language of the digital reaction. Its longevity is surprising given its origins: it was developed by CompuServe in 1987 to facilitate 8-bit palette transmission over 300-baud modems.
Spec Archaeology
Performance
7 min read
Why AVIF takes several times longer to encode than JPEG
The slowest part of converting an image to AVIF is the encode itself. The decoder side is fine — once a file is written, every modern browser displays it in single-digit milliseconds per megapixel, slower than JPEG but imperceptible on modern multi-threaded client rigs.
AV1 Intra Quant
Modern Web
4 min read
AVIF: The Next-Gen Format That's Already Here
JPEG has been the default web image format for decades thanks to universal compatibility, but its compression model is dated and often produces bulky files or visible artifacts. WebP improved the tradeoff, and AVIF takes it a leap forward with 10-bit HDR and film grain synthesis.
Next-Gen Standards
Mobile & Ecosystems
5 min read
HEIC: The Format Everyone Has But Nobody Asked For
In 2017, Apple quietly flipped a switch on every iPhone, and the most popular camera in the world suddenly stopped producing JPEGs. There was no announcement and no request for permission; it was a silent format change powered by HEVC container wrapping.
Apple HEVC ISO
Framework
8 min read
Which Image Format Should You Use? A Decision Framework
Design teams often find themselves trapped in a cycle of repetitive questions when trying to save product photos. Determining whether an image is for a website or email, if it needs transparency, and which browsers it must support can easily be resolved with a structured tree.
Production Playbook
Deep Dive
6 min read
What Actually Happens When You Save a JPEG
Saving a JPEG looks like a single step in a menu, but it is actually a five-stage pipeline: color space conversion, chroma subsampling, discrete cosine transform (DCT), matrix quantization, and Huffman entropy bitstream encoding.
DCT & Chroma
Conversion Logic
5 min read
Animated GIFs, multi-page TIFFs, and what survives a conversion
Some image formats hold more than one picture per file. Animations (GIF, WebP), multi-page scans (TIFF), and burst captures (HEIC) present unique conversion challenges when targeting single-frame raster destinations like baseline JPG.
Multiplex Buffers
Quality & Optimization
4 min read
PNG Is Not Always Better Quality
One of the more persistent myths in digital imaging is that PNG always produces higher visual quality than JPEG. It's true that PNG is lossless, but for photographic continuous tones, an unoptimized PNG can be 10x the size with zero perceptible difference to human vision.
Deflate vs DCT