Ch. 4 · Image Codecs

한국어日本語
5 min

Image Codec Comparison: JPEG, PNG, WebP, AVIF, JPEG XL and What They Teach

A side-by-side table of seven image formats, from JPEG to JPEG XL, and three lessons image codecs offer anyone about to learn video codecs.

To wrap up Chapter 4, here are all the image codecs so far in one table.

FormatCore technologyLossy / losslessWhere it stands today
JPEG (1992)Fixed 8×8 DCT + HuffmanLossyStill the majority of the web, the king of compatibility
PNG (1996)Predictive filter + DEFLATELosslessGraphics, screenshots, transparency
JPEG 2000 (2000)Wavelet + EBCOTLossy/losslessNiches such as cinema and medical imaging
WebP (2010)Lossy = VP8 intra / lossless = separate prediction + LZ77Lossy/losslessWeb; gradually being replaced by AVIF
HEIC (2015)HEVC intraLossyDefault for iPhone capture
AVIF (2019)AV1 intraLossy/losslessEmerging as the next-generation standard for web images
JPEG XL (2021)Modular + VarDCTLossy/losslessSpecial strengths such as lossless JPEG conversion
Three takeaways from Chapter 4

① JPEG is the 'prediction-free miniature' of the Chapter 3 pipeline — which makes it the ideal warm-up before learning video codecs. ② Compression technology does not always win on 'theoretical superiority' alone — JPEG 2000's failure is the proof. ③ The intra-frame technology of the latest video codecs becomes the next-generation image format as it is — HEIC/AVIF are the proof. This third lesson is a reminder of why the intra prediction techniques of AVC, HEVC, and AV1, which you will learn starting in Chapter 5, matter so much.

Next chapter preview

From Chapter 5 on, we take on the video codec generations one by one. The first up is H.264/AVC — the most successful standard in codec history, and still the majority of streaming worldwide.

Check yourself

What is the most practical lesson the history of image codecs offers someone learning video codecs?