Sub topic 8
Raster Images and Vector Artwork in Print
This chapter covers how raster and vector artwork behave at print size, which one to use for which job, and the errors that cause soft or jagged output. It assumes you can place images in a layout application such as InDesign, Illustrator, or Affinity. It also assumes you know what pixels per inch (ppi) means. The previous chapter introduced resolution, and the next chapter uses it to check placed images.
Two kinds of artwork
Every graphic in a print layout is built in one of two ways.
- A raster image is a grid of colored pixels. Photographs and scans are raster. A raster image has a fixed pixel count, such as 1800 × 1200. Common formats are JPEG, PNG, TIFF, and PSD.
- Vector artwork is a set of mathematical descriptions: points, curves, fills, and strokes. Logos, icons, line art, and most type are vector. Common formats are AI, SVG, EPS, and PDF.
The print consequence follows from this. A raster image has a limited amount of detail, set when it was created. Vector artwork has no pixel grid, so the printer's output device draws it at whatever resolution that device supports.
How raster images behave in print
A raster image only has so many pixels. When you place it in a layout, the layout application spreads those pixels across the size you give it. The pixels per inch you get is the pixel count divided by the placed length in inches. This is the effective resolution, covered in detail in the next chapter.
def effective_ppi(pixels, placed_length_inches):
"""Effective resolution of an image once it is scaled in the layout."""
return pixels / placed_length_inches
# A 1800 px wide photo placed 6 inches wide
print(effective_ppi(1800, 6)) # 300.0
# The same photo enlarged to 9 inches wide
print(effective_ppi(1800, 9)) # 200.0Enlarging does not add detail. The image gets the same pixels over a longer distance, so each pixel gets bigger and edges look soft or blocky. Shrinking does the opposite: effective resolution rises, and the image stays sharp.
Why upsampling does not fix it
You can resample a low-resolution image in an editor so it has more pixels. This is called upsampling. The software invents the new pixels by averaging their neighbors. The file reaches 300 ppi on paper, but no real detail comes back. At best, the result looks smoother and blurrier. Treat upsampling as a last resort for modest enlargements, not as a repair for a small web image.
Choosing a raster format
| Format | Compression | Good for | Watch out for |
|---|---|---|---|
| TIFF | Lossless (optional) | Photos headed for print, layered or flattened | Large files |
| PSD | Lossless | Photos with layers, transparency, or masks | Needs Photoshop-aware software to edit |
| PNG | Lossless | Screen graphics, images with transparency | Usually RGB only, so a color conversion is needed |
| JPEG | Lossy | Photos when file size matters | Quality loss builds up each time you re-save |
A JPEG saved once at high quality is usually fine for print. A JPEG that has been saved and re-saved, or saved at low quality, shows blocky artifacts around edges and in flat color. Those artifacts get worse when the image is enlarged.
How vector artwork behaves in print
Vector shapes are stored as instructions, such as "draw a curve from point A to point B and fill it with this color." The printer's raster image processor (RIP) turns those instructions into dots at the resolution of the output device. A RIP is the software or hardware in a printer that converts page data into the dots the machine prints.
For that reason, vector artwork has no effective resolution in the sense used for photos. You can scale a logo from a business card to a billboard, and the edges stay crisp because they are recalculated at the new size. The file does not get bigger when you enlarge it.
Live type and outlines
Text is vector as long as it stays live type, meaning the font is embedded or available. Two common practices apply:
- When you send the file as a PDF, embed the fonts so the printer does not need your copies.
- If you send native files, such as InDesign or Illustrator documents, package them with fonts and linked images. Converting type to outlines (shapes) removes the font dependency, but it also removes the ability to edit the text, so keep an unoutlined copy.
Strokes and scaling
A stroke is the line drawn along a path. When you scale vector art, strokes may or may not scale with it. In Illustrator the option is called "Scale Strokes & Effects." If it is off, a 1 pt stroke stays 1 pt while the shape grows. If it is on, the stroke grows with the shape. Check this before resizing artwork that has outlines, or line weights will quietly change.
Very thin strokes can also fail in print. A line under about 0.25 pt can break up or vanish on some presses. Many printers recommend 0.25 pt as a floor, and more for reversed (light on dark) lines. Ask your printer for its minimum.
When vector artwork becomes raster
Vector art is not always safe. Several things quietly turn it into pixels at a fixed resolution.
- Effects such as drop shadows, glows, and blurs are raster effects. In Illustrator they are rasterized at the document's raster effects setting. The default is often 72 ppi, which is too low for print. Set it to 300 ppi in the document settings before you apply effects.
- Flattening transparency can rasterize overlapping areas when a PDF is exported, depending on the preset.
- Pasting a vector graphic from a web page or a slide deck often pastes a bitmap instead.
- A logo saved as a PNG or JPEG is raster, even if it was drawn as vector originally.
The effect on the page is a logo or shadow that is soft while the rest of the page is crisp.
Choosing the right type for the job
| Content | Best choice | Reason |
|---|---|---|
| Photographs | Raster | Continuous tones and fine detail need pixels |
| Logos and icons | Vector | Sharp at any size, small files |
| Line art and diagrams | Vector | Clean edges, easy to recolor |
| Body text and headlines | Vector (live type) | Always at output resolution |
| Textures and painted artwork | Raster | Hand-made detail lives in pixels |
| Screenshots | Raster, used small | Fixed resolution, usually about 72–144 ppi |
Many designs mix both. A flyer might have a raster photo background with vector type and a vector logo on top. Each element is handled by its own rules.
Common errors
- Using a web logo. A 200 px wide logo downloaded from a website prints at under 100 ppi if placed 2 inches wide. Ask for the vector version (AI, SVG, EPS, or PDF).
- Scaling a vector logo that was saved as PNG. The file extension tells you what it is. Opening it in a vector editor reveals pixel edges when you zoom in.
- Screenshots at print size. Screen captures are low resolution. Use them small, or recreate the graphic as vector.
- Low-ppi effects on vector shapes. See the raster effects warning above.
- Raster images bleeding into the trim. A background photo needs enough pixels to cover the bleed too. The first chapter example calculates this: an A4 page with 3 mm bleed needs 2552 × 3579 pixels at 300 ppi.
import math
MM_PER_INCH = 25.4
def document_size_with_bleed(trim_w_mm, trim_h_mm, bleed_mm=3):
"""Return the full document size including bleed on all four sides."""
return trim_w_mm + 2 * bleed_mm, trim_h_mm + 2 * bleed_mm
def pixels_needed(size_mm, ppi=300):
"""Pixels needed to cover a length in millimeters at the given ppi."""
return math.ceil(size_mm / MM_PER_INCH * ppi)
w_mm, h_mm = document_size_with_bleed(210, 297, bleed_mm=3) # A4 with 3 mm bleed
print(w_mm, h_mm) # 216 303
print(pixels_needed(w_mm), pixels_needed(h_mm)) # 2552 3579Converting between the two
Going from vector to raster is easy. Export the artwork as a TIFF or PNG at the target size and ppi. This is called rasterizing. Do it only when you must, because the result cannot be scaled up later.
Going from raster to vector is harder. Tools such as Image Trace in Illustrator or Trace Image in Affinity detect edges and build paths. They work well on simple, high-contrast shapes such as a black logo on white. They work poorly on photos, gradients, and small text. Always inspect the traced result at high zoom, and expect to clean up stray points. If the original artwork exists, redrawing the logo by hand often gives a better result than tracing a poor scan.
Checking your work
Before export, look at the links panel in your layout application. It lists each placed file, its format, and its effective ppi. Vector placements show no ppi. Also zoom to 200% or more on logos and shadows, since soft edges are easy to spot there. The next chapter turns the raster check into concrete thresholds.
Exercise
A client sends a logo as a 400 × 150 px PNG and asks you to print it 4 inches wide on a poster. What is the effective resolution, and what should you do?
Show answer
Effective resolution is 400 px ÷ 4 in = 100 ppi, which is too low for crisp print at normal viewing distance. Do not upsample it. Ask the client for the original vector file (AI, SVG, EPS, or PDF). If none exists, redraw the logo or trace it carefully, then place the vector version.
Exercise
You draw a vector badge in Illustrator, add a drop shadow, and export a print PDF. The badge edges are sharp, but the shadow looks blurry. What is the likely cause, and how do you fix it?
Show answer
Drop shadows are raster effects, and the document's raster effects resolution was probably left at 72 ppi. Set it to 300 ppi in the document raster effects settings, then re-export. Check that the export preset does not downsample the rasterized area.
Exercise
For each item, choose raster or vector as the better source: a product photograph, a company logo, a hand-painted watercolor texture, and a headline in live type.
Show answer
Product photograph: raster. Company logo: vector. Watercolor texture: raster. Headline in live type: vector.