Lesson 6 of 16 · Level 2: Intermediate

Images, File Formats and Resolution: Vector vs. Raster, PPI, JPG, PNG and SVG

  • ⏱ 13 min read
  • ❓ 4 review questions
  • ✍️ Exercise with solution
  • 📥 Downloadable template
In this lesson
  1. Raster vs. vector
  2. Resolution: pixels, PPI and print size
  3. File formats
  4. Where to get images (legally)
  5. Basic retouching every designer does
  6. Case study: a jewelry store whose website loaded slowly
  7. Common image mistakes
  8. Summary
What you'll learn
  • Tell vector and raster images apart, and know when to use each.
  • Calculate the resolution you need to print without pixelation, in inches and PPI.
  • Choose the right file format: JPG, PNG, WebP, SVG or PDF.
  • Source images legally and handle basic retouching.
  • Cut the file size of an online store's photos without any visible loss of quality.
📥 Practice this lesson

Enter the final print size in inches and the PPI, and get the pixels you need (there's also a millimeter converter for metric sizes).

A pixelated logo on a storefront sign, an 8 MB photo slowing down a website, a white box around a logo that was supposed to be transparent, a photo pulled from the internet without permission. These technical mistakes are common, and they ruin otherwise good design. This lesson gives you the rules to avoid them.

300 PPIthe usual density for prints viewed up close
2550 × 3300pixels for a full Letter page (8.5 × 11 in) at 300 PPI
3.6 inis as wide as a 1080 px photo can print at 300 PPI

Raster vs. vector

Raster (bitmap)A grid of pixels, each one a single color
When enlarged
It pixelates or turns blurry.
Best for
Photos, textures, images with complex gradients.
Software
Photoshop, GIMP, Affinity (pixel tab), Photopea.
Formats
JPG, PNG, WebP, TIFF, HEIC.
Photos
VectorShapes defined by points and mathematical curves
When enlarged
It stays crisp at any size.
Best for
Logos, icons, flat illustration, type, charts.
Software
Illustrator, Inkscape, Figma, Affinity (vector tab).
Formats
SVG, AI, EPS, PDF (a PDF can hold both types).
Logos and icons
A circle zoomed in, as a raster image and as a vector On the left, a raster circle zoomed in: it looks like a staircase of blue squares on a 12 by 12 pixel grid. On the right, the same circle as a vector: a perfectly smooth edge defined by four anchor points and their handles. Raster, zoomed in Vector, zoomed in A 12 × 12 pixel grid 4 anchor points and their curves
The same circle seen up close. A raster image holds no information beyond its pixels, so enlarging it reveals the staircase; a vector is recalculated at every size, which is why a logo must be a vector.
A logo always lives in vector

The same logo will appear on a 3.5-inch business card and on a 10-foot sign. Only a vector file works for both. If a client hands you their logo as a small JPG, the professional fix is to redraw it as a vector (vectorize it), not to enlarge it.

Resolution: pixels, PPI and print size

On screen, what matters is the pixel dimensions (1080 × 1350, 1920 × 1080). In print, what matters is density: how many pixels fit in each inch of paper, measured in PPI (pixels per inch). People often say DPI (dots per inch), which technically describes the printer, but in everyday talk the two are used interchangeably.

Pixels needed = print size in inches × PPI
Print size    = pixels ÷ PPI
Metric sizes  = millimeters ÷ 25.4 = inches
PieceFinal sizeRecommended PPIPixels needed
Letter flyer8.5 × 11 in300 (viewed up close)2,550 × 3,300 px
Business card3.5 × 2 in3001,050 × 600 px
Poster24 × 36 in150 (viewed from farther away)3,600 × 5,400 px
Highway billboardOften 14 × 48 ftVery low, roughly 20 to 50 (seen from far away)Follow the printer's scaled template

Working backward: a 1080 px-wide photo printed at 300 PPI is 1080 ÷ 300 = 3.6 inches wide. Stretch it across a 24-inch poster and it will look pixelated. Changing the "DPI" setting in your software without adding pixels doesn't improve quality: it only changes the print size. If a client sends a metric size such as A4 (210 × 297 mm), convert first: 210 ÷ 25.4 × 300 ≈ 2,480 px and 297 ÷ 25.4 × 300 ≈ 3,508 px.

1. You need to print a photo 8 inches wide at 300 PPI. How many pixels wide must it be, at minimum?

  • 800 px
  • 2,400 px
  • 576 px

8 in × 300 PPI = 2,400 px. 800 px would be only 100 PPI, and 576 px confuses PPI with points (8 × 72).

File formats

FormatTypeTransparencyUse it forAvoid it for
JPGRaster, lossy compressionNoPhotos on websites and social mediaLogos, text, crisp-edged graphics (you get blotchy artifacts)
PNGRaster, losslessYesLogos for screens, screenshots, graphics with text, transparent backgroundsLarge photos (huge files)
WebP / AVIFModern rasterYesLightweight web images (same look as JPG or PNG with smaller files)Files for print
SVGVectorYesLogos, icons and illustrations on the webPhotos
PDFDocument (vector + raster)YesPrint files, documents, print-ready logosPosting on social media
GIFRaster, 256 colorsBasicShort, simple animationsPhotos (too few colors) and long animations (use video)
AI, PSD, FIG, AF (Affinity)Native, editable app files—Working files and project archivesSending to people who don't have the app

Image weight on the web

Heavy images slow a website down, which hurts the user experience and search rankings (see our guide to SEO for beginners). Practical rules:

  • Export at the size the image will be displayed (at most double, for high-density screens), not at 6,000 px.
  • Use JPG or WebP at medium-high quality (around 70–85%) for photos: the visual difference is minimal and the file shrinks dramatically.
  • Compress with tools like Squoosh or TinyPNG before uploading.
  • A well-optimized hero photo can usually stay at a few hundred kilobytes, not several megabytes.

2. A client needs their logo with a transparent background to place over photos on their website. Which formats do you deliver?

  • JPG.
  • GIF.
  • SVG (with PNG as a backup).

SVG is vector, lightweight and transparent; PNG supports transparency too. A JPG always has a solid background.

Where to get images (legally)

SourceWhat to keep in mind
Your own or the client's photosThe best way to look authentic. If people appear, you need their permission (a signed model release) for commercial use.
Free stock sites (Unsplash, Pexels, Pixabay)They allow commercial use without required attribution, with limits (for example, you can't resell the photo as is or imply that a person endorses your product). Read each site's license.
Paid stock (Adobe Stock, Shutterstock, iStock)Standard or extended licenses depending on the use (merchandise, large print runs).
AI-generated imagesCheck the tool's terms. In the U.S., the Copyright Office has said that material generated entirely by AI, without enough human authorship, can't be copyrighted. Don't imitate a specific artist's style or generate real brands or people.
Google Images or social mediaAlmost always owned by someone. "I found it online" isn't a license.

Basic retouching every designer does

  1. Crop and straighten: apply the rule of thirds (lesson 5) and fix tilted horizons.
  2. Exposure and contrast: rescue dark or flat photos with Levels or Curves.
  3. White balance: remove color casts (photos that look too yellow or too blue).
  4. Background removal: the automatic tools in current apps do it in seconds; check the edges (hair, transparent objects). Note: in Canva it's a paid feature, as is exporting a PNG with a transparent background.
  5. Blemish cleanup with the healing brush or content-aware fill.
  6. Non-destructive editing: use adjustment layers and masks instead of erasing or painting over the original, so you can change your mind later.
Mockups: present like a pro

A mockup is an image that shows your design on a real object (a mug, a sign, a phone). It helps clients picture the result and looks great in your portfolio (lesson 12). There are free and paid mockups; check their licenses too.

3. Can you use a photo you found on Google Images in a client's ad?

  • Only with a license or the creator's permission; the safe route is your own photos, the client's, or stock with a commercial license.
  • Yes: if Google shows it, it's public.
  • Yes, as long as you crop it or change its colors.

Images are protected by copyright even when they're online. Editing them doesn't give you the right to use them.

Case study: a jewelry store whose website loaded slowly

Handmade jewelry shop (illustrative case)Savannah, Georgia · online catalog with 12 products per page

The owner uploaded photos straight from her camera: 6,000 px wide and about 4 MB each. The catalog page, with 12 products, weighed 48 MB, and on a phone using cellular data the photos loaded in chunks. The designer applied this lesson's rules: she resized each photo to 1,600 px (double the largest size it was displayed at), exported it as WebP at 80% quality and checked on screen that the sparkle of the metal looked the same. Each photo ended up at about 200 KB.

Before

Catalog page weight48 MB

After

Catalog page weight2.4 MB

12 × 4 MB = 48 MB vs. 12 × 0.2 MB = 2.4 MB: 95% less weight, with photos that look the same.

Two details worth remembering. First, the 6,000 px originals were saved in a separate folder: they're what you'd use to print a catalog or a poster (6,000 px at 300 PPI is 20 inches wide). Second, the store's logo, which only existed as a JPG texted from a phone, was redrawn as a vector. Illustrator's Image Trace or Inkscape's Trace Bitmap can give you a head start, but the automatic result almost always needs manual cleanup: curves with too many points, distorted letters and bumpy edges.

4. You're printing a 5 × 7 in invitation at 300 PPI. What pixel size does the background image need, not counting bleed?

  • 500 × 700 px
  • 1,500 × 2,100 px
  • 360 × 504 px

5 × 300 = 1,500 px and 7 × 300 = 2,100 px. The first option uses 100 PPI, and the third multiplies by 72, mixing up PPI with points.

Common image mistakes

Enlarging a JPG logo for a sign.

Ask for the vector file or redraw the logo as a vector.

Uploading 6,000 px, multi-megabyte photos to a website.

Export at display size (at most double) and compress.

Changing the "DPI" setting and thinking it improves quality.

Calculate the pixels you need; if you don't have them, find a larger image.

Saving the logo as a JPG "with a white background" to use over photos.

Deliver it as SVG and transparent PNG.

Using photos from Google or another brand "because they're online."

Your own photos, the client's, or stock with a commercial license.

Practice exercise: prepare images for three uses

  1. Take a photo with your phone and note its pixel dimensions. How large could you print it at 300 PPI?
  2. Prepare it for the web: resize to 1,600 px wide, export as JPG and as WebP at different quality settings, and compare file size and appearance.
  3. Remove the background from an object and export it as a transparent PNG.
  4. Calculate the pixels needed for an 11 × 17 in (tabloid) poster at 300 PPI.
See solution: answers to the calculations
  • A 4,032 × 3,024 px phone photo printed at 300 PPI measures 4,032 ÷ 300 = 13.44 in by 3,024 ÷ 300 = 10.08 in: about 13.4 × 10 inches.
  • Tabloid at 300 PPI: 11 × 300 = 3,300 px and 17 × 300 = 5,100 px.
  • When you compare quality settings, you'll usually find that going from 75% to 100% multiplies the file size several times with an almost invisible difference.

Summary

  • Photos are raster; logos, icons and flat illustrations belong in vector.
  • For print: pixels = inches × PPI (300 for up-close pieces, less for pieces seen from a distance).
  • JPG and WebP for photos, PNG and SVG for transparency and graphics, PDF for print.
  • Optimize the weight of web images.
  • Use properly licensed images and retouch without destroying the original.

Next lesson: Social Media Design: Post Sizes, Safe Zones, Carousels and Templates. You'll apply everything so far to the most requested job of all: posts, Stories and carousels that read well on a phone.

🎓 Save your progress and get a free certificate

Create your account in 30 seconds, mark your lessons and download your certificate at the end.

Enroll for free