Skip to content
Study Hall
Lesson 4 of 7Graphic Design
Unit 1 · Lesson 4 of 7

Raster, Vector, Resolution and File Formats

The technical half of graphic design: what an image is actually made of, how big it can be printed, how large the file will be, and which format to export.

5 min read10 practice questionsAsk AI about this →

Key things to remember

  1. 1Raster images are grids of pixels and degrade when enlarged; vector images are equations and scale losslessly.
  2. 2Logos and icons must be built as vector — a flattened raster logo can never be made sharper.
  3. 3 and .
  4. 4300 PPI is the standard for professional print; 72–96 PPI is the screen convention.
  5. 5A colour depth of bits gives colours. 24-bit is 8 bits each for red, green and blue — about 16.7 million.
  6. 6Uncompressed size in bits is width × height × bit depth. Divide by 8 for bytes.
  7. 7Lossy compression (JPEG) discards data permanently and degrades on every re-save; lossless (PNG) does not.

Every image you will ever make is one of two things, and almost every technical problem in graphic design comes from confusing them. A raster image is a grid of coloured pixels. A vector image is a set of mathematical instructions for drawing shapes. That single difference determines whether a logo survives being blown up onto the side of a bus.

Raster — enlargedThe pixels get bigger, not more numerous.Vector — enlargedRedrawn from equations at any size.
Fig 1Enlarge a raster and you enlarge its pixels. Enlarge a vector and it is simply redrawn.
ARaster (bitmap)
  • A fixed grid of pixels
  • Enlarging beyond its native size produces visible blocks and blur
  • Handles photographs and continuous tone
  • File size grows with dimensions and colour depth
  • JPEG, PNG, GIF, TIFF, PSD
BVector
  • Paths, points and fills described by equations
  • Scales to any size with no loss at all
  • Handles logos, type, icons and flat illustration
  • File size depends on complexity, not dimensions
  • SVG, AI, EPS, PDF
The rule that follows from this
Build logos, icons and anything that will be reproduced at many sizes as vector. Once a logo has been flattened to a raster, that resolution is the best it will ever be — you cannot recover detail that was never recorded. 'Just increase the resolution' does not work, because upsampling invents pixels rather than finding them.

Resolution: pixels, PPI and print size

The same 3000-pixel-wide file, three densities300 PPI · 10 in wide · press quality150 PPI · 20 in wide · office print72 PPI · 41.7 in wide · visibly softNo pixels are added or removed — only the instruction about how densely to lay them down.
Fig 2The same pixel count printed at three densities. More PPI means a smaller, sharper print.

An image's pixel dimensions are its real content — say pixels. PPI (pixels per inch) is not stored in the pixels; it is an instruction about how densely to lay them down when printing. Change the PPI without resampling and the pixel count is untouched, only the printed size changes.

Rearrange it to find the pixels you need: pixels = inches × PPI.
DestinationResolution to useWhy
Screen / web72–96 PPI (or just pixel dimensions)Screens address pixels directly; PPI is meaningless to them
Desktop / office print150 PPIAcceptable on plain paper
Professional print300 PPIThe industry standard for photographs in print
Large-format banner50–150 PPIViewed from metres away, so fewer pixels per inch are needed
Downsampling is safe; upsampling is not
Throwing pixels away to make an image smaller loses detail you no longer need. Adding pixels to make it bigger means the software is guessing at colours between the originals, which produces softness rather than detail. Always start from the largest original you have.

Colour depth and file size

n bits → 2ⁿ colours. Each extra bit doubles the count.DepthColoursWhere you meet it1-bit2black and white only2-bit4four levels4-bit16early computer palettes8-bit256GIF, indexed colour16-bit65 536high colour24-bit16 777 216true colour — 8 bits each R, G, B32-bit16 777 216true colour + 8-bit alpha for transparency
Fig 3Each extra bit doubles the number of available colours.

Colour depth (or bit depth) is the number of bits used to record each pixel's colour. With bits you can distinguish different values, so 8-bit gives 256 and 24-bit gives million — the '24-bit true colour' of 8 bits per channel across red, green and blue. 32-bit is the same with an 8-bit alpha channel added for transparency.

Divide by 8 for bytes, then by 1024 twice for megabytes. This is the uncompressed size.
This is the uncompressed size
The formula gives the raw size. Real files are almost always compressed, so a JPEG will come out far smaller. The calculation still matters: it tells you what the image costs before compression, which is what determines memory use while editing.

Compression, and choosing a format

ALossy compression
  • Permanently discards data the eye is least likely to miss
  • Much smaller files
  • Quality degrades every time the file is re-saved
  • JPEG, MP3, most video codecs
BLossless compression
  • Rebuilds the original exactly
  • Larger files
  • Re-saving costs nothing in quality
  • PNG, GIF, ZIP, TIFF (LZW)
Work backwards from the destination.Logo, icon or type?SVG (web) · PDF/AI/EPS (print)scales to any sizeNeeds transparency, or has hard edges?PNGlossless, full alpha channelA photograph, and size matters?JPEGlossy, no transparencyA finished layout for a printer or client?PDFkeeps type, vectors and bleedWhatever you export, keep the layered master — a flattened file cannot be un-flattened.
Fig 4Work backwards from the destination and the answer is usually forced.
FormatTypeTransparencyUse it for
JPEGRaster, lossyNoPhotographs for web and print where file size matters
PNGRaster, losslessYes (alpha)Screenshots, flat graphics, anything needing transparency
GIFRaster, lossless, 256 coloursYes (1-bit)Simple animation; obsolete for still images
SVGVectorYesLogos and icons on the web — scales to any size
TIFFRaster, losslessYesHigh-quality print masters and archives
PDFBothYesSending a finished layout to a printer or a client
PSD / AIWorking filesYesEditable masters with layers — never a delivery format
Keep the master
Always keep the layered working file (PSD, AI, or the project file) and export flattened copies from it. An exported JPEG cannot be un-flattened, and the client who asks for one word changed will ask on the afternoon of the deadline.

Worked examples

Reveal one step at a time and try to beat it to the next line.

Example 1
A photo is pixels. How large can it be printed at 300 PPI, and what size would the same file make at 150 PPI?
Example 2
A poster must print at 24 × 36 inches at 150 PPI. What pixel dimensions does the image need?
Example 3
Calculate the uncompressed file size of a image at 24-bit colour depth, in megabytes.
Example 4
You need to put a school logo on a website, and the same logo will later go on a banner. Which format(s), and why?

Where marks get lost

  • Trying to rescue a small raster logo by raising the PPI. Upsampling invents pixels; it cannot recover detail that was never captured.
  • Treating PPI as a property of the file. Pixel dimensions are the content; PPI is only an instruction about print density.
  • Saving a JPEG repeatedly while editing. Each save re-applies lossy compression, and the damage accumulates.
  • Using JPEG for a logo or a screenshot, which produces visible artifacts around hard edges and offers no transparency.
  • Dividing bits by 1000 instead of 8 to get bytes. Bits to bytes is ÷8; bytes to kilobytes is ÷1024.
  • Delivering a flattened export as the master and keeping no layered file, so the smallest revision means starting again.
  • Designing a large-format banner at 300 PPI, producing an enormous file for something viewed from several metres away.

Flashcards 11

Raster image
Vector image
PPI
Print size formula
+ 7 more

Practice

1
A logo needs to appear on a business card and on the side of a truck. What should it be created as?
2
An image is 2400 pixels wide. How many inches wide will it print at 300 PPI?
in
3
A banner must print 20 inches wide at 150 PPI. How many pixels wide must the file be?
px
4
How many distinct colours can be represented with a colour depth of 8 bits?
5
Which statement about JPEG compression is correct?
6
What is the uncompressed size, in bytes, of an 800 × 600 image at 24-bit colour depth?
bytes
7
Which image format would you choose for a screenshot that needs a transparent background?
8
Match each format to what it is best used for.
JPEG
PNG
SVG
PDF
9
You change an image's PPI from 300 to 150 without resampling. What happens?
10
Order these steps for preparing a photograph for a printed magazine page.
  1. 1Export a flattened PDF or TIFF for the printer
  2. 2Convert the document to CMYK for the press
  3. 3Edit in a lossless master file, keeping the layers
  4. 4Start from the largest original file available
  5. 5Check the pixel dimensions against the required print size at 300 PPI

Spot a mistake on this page? Let us know