Sub topic 12
Delivering for Web and Print
This chapter assumes you know how raster images store pixels, how vector images store paths, what PPI means, and the difference between RGB and CMYK. It covers how to prepare files for screens and for printers, and the errors that cause most delivery problems.
Two destinations, two sets of rules
A screen and a printing press measure quality differently.
- A screen shows a fixed grid of pixels. What matters is pixel dimensions, file weight (download size), and color in RGB.
- A press lays ink on paper at a physical size. What matters is pixels per inch at the final size, color in CMYK or spot inks, and extras such as bleed.
The same artwork often goes to both. A logo might appear in a web header and on a business card. You deliver a different file for each destination, and you pick each file for what the destination needs.
Delivering for the web
Match pixel dimensions to display size
Browsers scale images to fit the layout, but they still download every pixel you send. A 4000 by 3000 photo shown in a 600 pixel wide slot wastes bandwidth and slows the page.
For sharp results on high density screens, such as phones and many laptops, send an image roughly twice the CSS width. A slot that is 600 CSS pixels wide looks crisp with a 1200 pixel wide file. Going beyond about 2x to 3x rarely adds visible quality.
You can offer several sizes and let the browser choose with srcset:
<img
src="lake-600.jpg"
srcset="lake-600.jpg 600w, lake-1200.jpg 1200w, lake-2400.jpg 2400w"
sizes="(max-width: 700px) 100vw, 600px"
alt="Mountain lake at sunrise"
width="600"
height="400">The width and height attributes let the browser reserve space before the file arrives. That prevents the page from jumping as images load.
Pick the format by content
| Content | Good web choice | Why |
|---|---|---|
| Logo, icon, simple illustration | SVG | Stays sharp at any size, usually a few kilobytes |
| Photograph | JPEG or WebP | Lossy compression suits smooth tonal change |
| Screenshot, sharp-edged UI art | PNG or WebP lossless | Lossless keeps text and edges clean |
| Image needing partial transparency | PNG or WebP | Both support an alpha channel (a per-pixel opacity value) |
| Short, simple animation | WebP or a video file | GIF is limited to 256 colors and is usually larger |
A few points on this table:
- WebP is widely supported in current browsers, but if you must support very old software, keep a JPEG or PNG fallback using the
pictureelement. - An SVG that contains a large embedded raster image gains none of the vector benefits. Check what is inside the file.
- JPEG has no transparency. Saving a logo with a transparent background as JPEG fills it with a solid color, usually white.
Optimize SVG files
SVG files exported from design tools often carry editor metadata, unused definitions, and overly precise coordinates. Removing these cuts file size without changing appearance. A tool such as SVGO does this automatically. Always compare the result visually afterward, since aggressive settings can strip a viewBox and break scaling.
Text in SVG deserves care. If the SVG uses a font that is not installed on the viewer's device, the browser substitutes another font. Convert text to outlines (paths) for logos. For text that must stay selectable or accessible, keep it as text and load the font on the page.
Work in RGB for screens
Screens emit light using red, green, and blue. Export web images in sRGB, the standard color space for browsers. An image saved in CMYK may show wrong colors, or may not display at all in some contexts. If your source uses a wider space such as Adobe RGB or Display P3, convert to sRGB for the widest consistent result, unless you are deliberately targeting wide-gamut displays.
Check file weight
Set a budget. A common rule of thumb is to keep a typical content photo under roughly 200 KB, and a hero image under roughly 500 KB, though the right figure depends on your site. Lower the JPEG or WebP quality setting until artifacts start to appear, then step back slightly. A quality of 70 to 85 often works for photos.
Delivering for print
Resolution is measured at final size
Print resolution is expressed in pixels per inch at the printed size. A common target is 300 PPI for images viewed up close, such as brochures and magazines. Large items viewed from a distance, such as posters and banners, can use less, often 100 to 150 PPI.
The calculation is simple. Required pixels equal the print dimension in inches times the target PPI.
def required_pixels(width_in, height_in, ppi=300):
"""Return the pixel dimensions needed to print at a given size."""
return round(width_in * ppi), round(height_in * ppi)
def effective_ppi(pixel_width, print_width_in):
"""Return the PPI you get when an image is printed at a given width."""
return pixel_width / print_width_in
# An A4 page is about 8.27 x 11.69 inches.
print(required_pixels(8.27, 11.69)) # (2481, 3507)
# A 1200 pixel wide web image stretched across 8 inches of paper:
print(effective_ppi(1200, 8)) # 150.0, too low for close viewingA key consequence: a web image enlarged for print has no extra detail. The "DPI" value stored in the file metadata does not add pixels. Changing it from 72 to 300 without resampling only changes the size the software reports.
Prefer vector for logos and line art
Vector artwork prints at the resolution of the output device, so edges stay sharp on a business card and on a billboard. Supply logos as vector PDF, EPS, or SVG, depending on what the printer asks for. Always follow the printer's specification sheet when it differs from general advice.
Use CMYK or spot colors for the press
Commercial presses mix cyan, magenta, yellow, and black inks. Many saturated screen colors, such as bright blues and greens, fall outside what CMYK can reproduce, so they print duller. Convert to CMYK early and check the result on a proof, rather than discovering the shift at the end.
Two further points:
- Rich black. Large black areas often use a mix of all four inks, not just K, for a deeper result. Small black text should use K only, so that slight misregistration between plates does not blur it.
- Spot colors. For brand colors that must match exactly, a printer can use a premixed ink, such as a Pantone color, as a separate plate.
Bleed, trim, and safe area
Cutting machines are not perfectly precise. To avoid thin white edges, artwork that reaches the edge of the page must extend past the cut line.
- Trim is the final cut size.
- Bleed is the extra artwork beyond the trim, commonly 3 mm (0.125 in). Check your printer's value.
- Safe area is an inner margin where important text and logos should stay, so they are not cut off.
Raster backgrounds need enough pixels to cover the bleed too. If your photo is exactly page-sized, extend it or scale it up slightly.
Fonts and PDF output
PDF is the usual delivery format for print because it can hold both vector and raster content in one file. Two settings cause most failures:
- Embed fonts, or convert text to outlines. A missing font changes line breaks and character shapes.
- Include bleed and, if requested, crop marks. Use a standard such as PDF/X, which printers often require, since it restricts the file to print-safe features.
Flatten or check transparency effects such as drop shadows if the printer asks you to. Old workflows can mishandle them.
Web versus print at a glance
| Setting | Web | |
|---|---|---|
| Color mode | sRGB | CMYK or spot inks |
| Resolution target | Pixel dimensions at 1x to 2x display size | 300 PPI at final size for close viewing |
| Typical raster formats | JPEG, PNG, WebP | TIFF, high quality JPEG, PDF |
| Typical vector formats | SVG | PDF, EPS, AI |
| Main size concern | File weight in KB | Physical size and bleed |
| Fonts | Web fonts or outlined text | Embedded or outlined |
Common errors
- Using the "72 DPI for web" rule. Browsers ignore the PPI metadata. Only pixel dimensions matter on screen.
- Upscaling for print. Enlarging a small image in software invents pixels by interpolation and does not recover detail. Request or create a larger source.
- Exporting a logo as JPEG. You lose transparency and get compression noise around edges. Use SVG or PNG.
- Forgetting bleed. Backgrounds that stop at the trim line leave white slivers after cutting.
- Leaving print files in RGB without agreement. Some printers convert automatically, and you may not like how. Ask what they expect.
- Missing fonts. Both SVG on the web and PDF in print can substitute fonts silently.
Exercise
A client wants a 20 cm wide brochure photo printed at 300 PPI. The photo you have is 1800 pixels wide. Is it enough? If not, what is the effective PPI, and what should you do? (1 inch = 2.54 cm.)
Show answer
20 cm is about 7.87 inches. At 300 PPI you need about 2362 pixels wide. The 1800 pixel photo gives 1800 / 7.87, about 229 PPI. That is below target and may look slightly soft up close. Ask for a larger original, retake the photo, or reduce the printed width. At 1800 pixels, a width of 6 inches (about 15.2 cm) would hit 300 PPI. Upscaling the file adds no real detail.
Exercise
You are exporting a company logo for the website header, the printed business card, and an email signature with a transparent background. Name a format for each and give one reason.
Show answer
Website header: SVG, because it stays sharp on any screen and is small. Business card: vector PDF (or EPS if the printer asks), because it prints at the device resolution and can carry CMYK or spot colors. Email signature: PNG at about twice the display size, because it supports transparency and many email clients do not render SVG reliably.