02Chapter 2: Raster versus vector imagesThis chapter assumes you can use a design tool such as Figma, Sketch, Photoshop, or Illustrator. It also assumes you know what layers, artboards, and frames are, and that you know a web page is built from HTML, CSS, and image files. You should already know that a pixel is one colored dot on a screen5 min read
03Chapter 3: Lossy versus lossless compressionThis chapter assumes you can export an image from a design tool and know that a raster image is a grid of pixels. It explains the one choice that sets most file sizes: whether the encoder may change your pixels.5 min read
04Chapter 4: JPEG: photographs and complex imagesJPEG is the long-standing format for photographs on the web. This chapter covers how it compresses an image, which settings affect the result, and where it fails. It assumes you know what pixels and screen density are, the difference between raster and vector images, and the difference between lossy6 min read
05Chapter 5: PNG: sharp edges, flat color, and transparencyThis chapter assumes you know what a pixel is, the difference between raster and vector images, and the difference between lossy and lossless compression from the earlier chapters. You should also be comfortable exporting from a design tool such as Figma, Sketch, Photoshop, or Illustrator.6 min read
06Chapter 6: SVG: icons, logos, and illustrationsSVG (Scalable Vector Graphics) is an image format that describes shapes with text instead of pixels. This chapter assumes you know the difference between raster and vector images from the earlier chapter. It also assumes you can export from a design tool such as Figma, Sketch, or Illustrator, and th6 min read
07Chapter 7: GIF: why it is rarely the right choiceThis chapter assumes you know the raster/vector split, the idea of lossless versus lossy compression, and the basics of PNG and JPEG from earlier chapters. You should also know what a color palette is in a design tool. By the end you will know what GIF does, where it fails, and what to export instea5 min read
08Chapter 8: WebP: a modern all-round formatThis chapter assumes you already know the difference between lossy and lossless compression, what JPEG and PNG are good at, and what a pixel dimension is. It covers what WebP does, where it beats the older formats, how to export it, and the mistakes that cause trouble.5 min read
09Chapter 9: AVIF: higher compression, with trade-offsAVIF is an image format built on the AV1 video codec. It usually produces smaller files than JPEG and WebP at similar visual quality. This chapter covers what AVIF does well, where it costs you, and how to export it safely. It assumes you already know the difference between lossy and lossless compre5 min read
10Chapter 10: Transparency and animation across formatsThis chapter assumes you know the difference between raster and vector images, and between lossy and lossless compression. It also assumes you have a basic idea of what JPEG, PNG, GIF, WebP, AVIF, and SVG are. Here you will compare how those formats handle transparency and animation. You will then p5 min read
11Chapter 11: Choosing a format for each imageThis chapter assumes you know the difference between raster and vector images, and between lossy and lossless compression. It also assumes you have met each format (JPEG, PNG, SVG, GIF, WebP, AVIF) in the earlier chapters. Here you will turn that knowledge into a repeatable decision for every image 5 min read
12Chapter 12: Export dimensions and 1x/2x scalesThis chapter assumes you can use a design tool such as Figma, Sketch, or Photoshop. It also assumes you know what a pixel is, what a frame or artboard is, and that a web page loads images through HTML. Formats and compression settings are covered in other chapters. Here the question is how many pixe5 min read
13Chapter 13: Setting compression qualityThis chapter assumes you can export from a design tool, know the difference between lossy and lossless compression, and have already picked a format for the image (JPEG, PNG, WebP, or AVIF). Here you decide how hard to compress it. The goal is the smallest file that still looks right at the size it 5 min read
14Chapter 14: Color space and metadataThis chapter covers two things that sit inside an exported image file but are not pixels you see: the color profile that tells software how to interpret the pixel values, and the metadata that travels with the file. I assume you have read the chapters on formats and compression settings, and that yo5 min read
15Chapter 15: Responsive images with srcset and pictureThis chapter assumes you can export images at 1x and 2x, know the differences between JPEG, PNG, WebP, and AVIF, and can read basic HTML. You do not write the markup in most teams. You do need to know what it does, because it decides which files you must export and how they must be named and sized.5 min read
16Chapter 16: File-size budgets and page performanceThis chapter assumes you can already export JPEG, PNG, WebP, AVIF, and SVG files and set quality values. It also assumes you know what srcset and sizes do. Here you will learn to decide how many bytes an image may cost, check the result against that limit, and recognize the mistakes that make pa6 min read
17Chapter 17: Export tools and workflowThis chapter assumes you know the formats (JPEG, PNG, SVG, WebP, AVIF), how to pick export dimensions and 1x/2x scales, how to set compression quality, and what color space and metadata mean. Here you will put those choices into a repeatable workflow. The workflow uses your design tool's export pane5 min read
18Chapter 18: Verifying exported imagesThis chapter assumes you can export images in the formats covered earlier (JPEG, PNG, SVG, WebP, AVIF). It also assumes you know your export dimensions, 1x and 2x scales, and quality settings. Here you check that the files you made are the files the browser actually loads, and that they meet your si7 min read
19Chapter 19: Naming and handoff to developersThis chapter covers the last step of the workflow: naming exported files and giving them to developers in a form they can use without guessing. It assumes you have read the earlier chapters on formats, export dimensions, compression, and verification. You should be comfortable with the idea that one5 min read