Sub topic 12
Delivering for web and print
This chapter assumes you know the raster and vector models, what pixel dimensions and PPI mean, and the difference between RGB and CMYK. It covers how those ideas change what you hand off for a screen and for a printer.
Two destinations, two sets of constraints
A screen shows light through red, green and blue subpixels. It cares about pixel dimensions and download size. A printing press lays down ink, usually cyan, magenta, yellow and black. It cares about physical size, ink coverage and the printer's own file requirements.
| Concern | Web | |
|---|---|---|
| Color mode | RGB (usually sRGB) | CMYK, or as the printer specifies |
| Size measured in | Pixels | Physical units (mm, inches) |
| Resolution target | Pixels for the largest display size | About 300 PPI at final size for photos |
| Main limit | File weight and load time | Print quality and bleed |
| Typical formats | SVG, WebP, JPEG, PNG | PDF, EPS, high-quality TIFF or PNG |
Delivering for the web
Pick the format by the content, then size the file for the display.
- Logos, icons and simple illustrations: SVG. It stays sharp on every screen density and is often only a few kilobytes.
- Photographs: JPEG or WebP, compressed lossily.
- Graphics with transparency that cannot be vector: PNG or WebP.
Both formats go into the page with the same img element:
<img src="logo.svg" alt="Company logo" width="120">
<img src="photo.jpg" alt="Mountain lake at sunrise" width="600" height="400">Setting width and height lets the browser reserve space before the image loads, which avoids the page jumping.
High-density screens need extra pixels. A photo shown at 600 CSS pixels wide looks soft on a display with a 2x pixel ratio unless the file is about 1200 pixels wide. Check how much storage that costs:
width, height = 1200, 800
bytes_per_pixel = 3 # 8 bits each for red, green and blue
size_bytes = width * height * bytes_per_pixel
print(size_bytes) # 2880000 bytes, about 2.7 MiB uncompressedCompression brings this down to a fraction. Even so, export at the size you need and no larger.
Delivering for print
Print work is judged at physical size, so work backward from it.
- Confirm the final size, for example A5 or 4 x 6 inches.
- Multiply by the target PPI. A 6-inch-wide photo at 300 PPI needs 1800 pixels across.
- Add bleed, usually about 3 mm beyond the trim edge, so backgrounds run to the edge after cutting.
- Keep text and key content inside a safe margin.
- Convert to the color mode and profile the printer asks for.
Vector artwork and live text are the safest choice for print because the printer's device draws them at its own resolution. A PDF can hold vector shapes, text, fonts and raster photos together, which is why most printers request PDF.
One asset, both destinations
A logo is the usual case where one master serves both. Keep the vector original, then export what each destination needs.
Common errors
- Sending a 72 PPI web image to a printer. At 4 inches wide it has only 288 pixels, so it prints blurry.
- Upscaling a small raster to reach a pixel count. Interpolation adds pixels but no detail.
- Using a 4000-pixel JPEG for a 300-pixel slot. The page loads slowly and gains nothing.
- Forgetting bleed, which leaves thin white edges after trimming.
- Delivering text as a raster when it could remain live vector text.
Exercise
A client wants a photo printed 8 inches wide at 300 PPI, and the same photo shown on a website at 400 CSS pixels wide for 2x screens. What pixel width do you need for each, and can one file serve both?
Show answer
Print needs 8 x 300 = 2400 pixels wide. The 2x web display needs 400 x 2 = 800 pixels wide. The 2400-pixel file can be the master, but serving it on the web wastes bandwidth. Export a separate 800-pixel version for the site, and keep the 2400-pixel file for print.