Sub topic 9
Imagery, resolution and file formats
This chapter assumes you can already tell vector artwork from raster artwork, work with layers and placed (linked) files in your design tool, and know that a placement specification sheet lists size and format limits. Earlier chapters covered how to read those sheets and how colour modes work. Here the focus is the image itself: how many pixels it needs, which file format carries it, and what usually goes wrong.
The working model: pixels, size and density
A raster image (a photograph, or any picture made of pixels) has a fixed pixel count. It has no physical size until you place it in a layout. Resolution is the relationship between the two:
- Pixel dimensions are the width and height in pixels, for example 3000 x 2000.
- Placed size is how large the image appears in the layout, in inches or millimetres for print and in CSS pixels for screens.
- Effective resolution is pixel dimensions divided by placed size, measured in pixels per inch (ppi).
The "72 ppi" or "300 ppi" value stored in a file's metadata is only a label. It changes nothing about the pixels. What matters is the effective resolution after you scale the image in the layout.
Two terms are often mixed up. ppi counts image pixels per inch. dpi counts the dots a printer or imagesetter puts down per inch. A printer may use thousands of dots per inch to build one image pixel with halftone dots, so the two numbers are not interchangeable. When a spec sheet says "300 dpi", read it as "300 ppi effective resolution".
// Effective resolution of a placed raster image.
const effectivePpi = (pixels, placedInches) => Math.round(pixels / placedInches);
// A 3000 px wide photo placed at different widths.
console.log(effectivePpi(3000, 10)); // 300 fine for a magazine page
console.log(effectivePpi(3000, 12)); // 250 borderline, check the spec
console.log(effectivePpi(3000, 30)); // 100 only acceptable for large-format viewingResolution targets by placement
Target resolution depends on how closely the viewer sees the piece.
| Placement | Typical target | Notes |
|---|---|---|
| Magazine, brochure, flyer | 300 ppi at final size | Offset and digital print both reward this. Below about 200 ppi, softness shows. |
| Newspaper | 150 to 200 ppi | Coarse paper and coarse halftone screens hide detail. Follow the publisher's sheet. |
| Poster | 150 to 300 ppi | Depends on viewing distance. A poster read at arm's length needs more than one read across a room. |
| Large-format banner or billboard | Often 50 to 150 ppi at final size | Viewers are far away. Printers usually state the number they need. |
| Screen ads | Pixels = CSS size x 1 (standard), x 2 (high-density) | Physical inches do not apply. |
Treat these as starting points. The publisher or printer's specification sheet always overrides them.
Working out pixel needs for print
Work backwards from the final trimmed size plus bleed, then multiply by the target ppi. Bleed is the extra image area that runs past the trim edge, so the image must cover it.
// Pixel size needed for a print image at a given resolution.
const pixels = (inches, ppi) => Math.round(inches * ppi);
// A 5 x 7 inch ad with 0.125 inch bleed on every side, at 300 ppi.
const bleed = 0.125;
const width = pixels(5 + 2 * bleed, 300);
const height = pixels(7 + 2 * bleed, 300);
console.log(width, height); // 1575 2175If a photo runs full-page, it must be at least 1575 x 2175 px after cropping. Crop first, then count pixels. A wide photo cropped to a portrait ad can lose most of its width.
Upscaling does not add detail
Enlarging a low-resolution file in a design tool (resampling it up) spreads the same information across more pixels. Edges soften and compression artefacts become visible. AI-based upscalers can produce plausible texture, but they invent detail. Do not rely on them for product shots, faces or text inside the image, where invented detail can misrepresent the subject. If a source is too small, find a larger original, reshoot, or redesign with a smaller image area.
Downscaling is safe. Resample down to the needed size for digital files. Reducing dimensions is also the biggest single saving in file weight.
Raster versus vector in an ad
Use each type where it is strong.
- Raster suits photographs and complex gradients. It is limited by its pixel count.
- Vector suits logos, icons, illustrations and simple shapes. It is described by paths, so it scales to any size with sharp edges.
Keep logos as vector in print files, and as SVG or vector-sourced exports in digital files when the placement allows it. A logo pasted as a 200 px PNG into a poster is a classic failure.
Choosing file formats
Formats differ in compression, transparency and colour support. Pick by the job, not by habit.
| Format | Compression | Transparency | Best for | Watch out for |
|---|---|---|---|---|
| JPEG | Lossy | No | Photos on screen and in print | Repeated saving degrades quality. Visible artefacts around text and hard edges. |
| PNG | Lossless | Yes (alpha) | Screenshots, logos with transparency, flat graphics | Photos become heavy files. |
| GIF | Lossless, 256 colours | 1-bit only | Short simple animations where required | Banding in photos. Large files for long animations. |
| WebP | Lossy or lossless | Yes | Smaller web images | Not accepted by every ad platform. Check the sheet. |
| SVG | Vector | Yes | Logos and icons in HTML5 ads | Avoid embedded raster data and unsupported features. |
| TIFF | Lossless or none | Yes | Print masters, high-quality archives | Large files. Many ad systems reject it. |
| PDF (PDF/X) | Mixed | Yes | Final print delivery | Needs correct export settings. See the export chapter. |
Two rules of thumb follow from the table. For print, deliver the placed images at full quality inside a PDF, and keep layered masters in your design format. For screens, use JPEG for photographic ads and PNG for flat artwork with sharp text, unless the spec requires something else.
Colour mode travels with the image
Image colour mode interacts with the format. Photos from cameras and stock sites are usually RGB. Print usually needs CMYK or a managed conversion at export, as covered in the colour chapter. Keep RGB masters and convert late, because converting early locks in a smaller gamut and the conversion cannot be reversed without loss. Always keep an embedded profile (such as sRGB for screens) so browsers display the colours correctly. Stripping profiles to save a few kilobytes can shift colours in some viewers.
Digital specifics: density and file weight
Screen ads are measured in CSS pixels. A 300 x 250 ad shown on a high-density phone screen (2x) uses four physical pixels per CSS pixel. To look sharp, supply a 600 x 500 image displayed at 300 x 250. The HTML5 banner below declares its size for Google Ads, sets explicit width and height, and offers both versions through srcset.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="ad.size" content="width=300,height=250">
<title>Spring Sale 300x250</title>
</head>
<body style="margin:0">
<a href="https://example.com" style="display:block;width:300px;height:250px">
<img src="banner.png" srcset="banner.png 1x, [email protected] 2x" width="300" height="250" alt="Spring Sale: 20% off">
</a>
</body>
</html>Many platforms cap file weight. Static image ads are often limited to around 150 KB, and HTML5 packages have a total limit, commonly in the hundreds of kilobytes, with limits on the number of files. These figures differ by network and change over time, so read the current sheet. The weight budget also counts the 2x asset, which is often what pushes a banner over the limit.
To reduce weight without visible damage:
- Crop to the visible area. Remove pixels that never show.
- Resize to the exact needed dimensions.
- Lower JPEG quality in steps (for example from 80 to 65) and compare at 100% zoom.
- Use PNG-8 or a limited palette for flat colour graphics.
- Prefer SVG for logos and icons.
Common errors
- Trusting the metadata. A file labelled 300 ppi can still be 600 px wide. Check pixel dimensions and effective resolution in the layout's links panel or preflight.
- Screenshots of web images. These carry screen resolution and compression, and often watermarks or licensing problems.
- Text baked into images. Text in a raster image blurs when scaled, cannot be checked for contrast as live text, and may be rejected by platforms that limit text coverage in images. Keep type live where possible.
- Skipping bleed in images. The image reaches the trim line exactly and a thin white edge appears after cutting.
- Re-saving JPEGs. Each lossy save adds artefacts. Keep a lossless master and export copies from it.
- Ignoring licensing. Check that the stock or client image licence covers the medium, the print run or impressions, and the territory.
- Unlinked or missing files. Package linked images with the layout so the printer or colleague receives them.
Exercise
A 5 x 7 inch print ad has 0.125 inch bleed on every side and a 300 ppi target. A designer places a 1200 x 1800 px photo full-bleed. What is the effective resolution across the width, and is it acceptable? What would you do?
Show answer
The width with bleed is 5.25 inches. 1200 / 5.25 is about 229 ppi, and the photo's 2:3 shape also has to cover the 5.25 x 7.25 inch area. At 7.25 inches tall, 1800 / 7.25 is about 248 ppi, but the photo's aspect ratio would force scaling to cover the width and height, so the limiting value is about 229 ppi (the photo must be scaled by the larger required factor, 5.25 wide by 7.25 tall needs the image scaled so both sides are covered). That is below the 300 ppi target. Ask for a larger original (at least 1575 x 2175 px after cropping), or reduce the image area so the photo covers less of the page, and keep the rest as flat colour.
Exercise
A 728 x 90 leaderboard must be sharp on 2x screens and its static image limit is 150 KB. Which pixel size do you export for the high-density version, and which two things would you change first if the file is 210 KB?
Show answer
Export at 1456 x 180 px, displayed at 728 x 90 CSS pixels. To cut weight, first crop away any unused image area and lower the JPEG quality in steps while checking at 100% zoom. If the artwork is flat colour, switch to a reduced-palette PNG, or use SVG for the logo.