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
- 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.
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).
- design-calculators-and-checklists.xlsx · Calculators tab, Print Resolution section
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.
Raster vs. vector
- 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.
- 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).
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
| Piece | Final size | Recommended PPI | Pixels needed |
|---|---|---|---|
| Letter flyer | 8.5 × 11 in | 300 (viewed up close) | 2,550 × 3,300 px |
| Business card | 3.5 × 2 in | 300 | 1,050 × 600 px |
| Poster | 24 × 36 in | 150 (viewed from farther away) | 3,600 × 5,400 px |
| Highway billboard | Often 14 × 48 ft | Very 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?
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
| Format | Type | Transparency | Use it for | Avoid it for |
|---|---|---|---|---|
| JPG | Raster, lossy compression | No | Photos on websites and social media | Logos, text, crisp-edged graphics (you get blotchy artifacts) |
| PNG | Raster, lossless | Yes | Logos for screens, screenshots, graphics with text, transparent backgrounds | Large photos (huge files) |
| WebP / AVIF | Modern raster | Yes | Lightweight web images (same look as JPG or PNG with smaller files) | Files for print |
| SVG | Vector | Yes | Logos, icons and illustrations on the web | Photos |
| Document (vector + raster) | Yes | Print files, documents, print-ready logos | Posting on social media | |
| GIF | Raster, 256 colors | Basic | Short, simple animations | Photos (too few colors) and long animations (use video) |
| AI, PSD, FIG, AF (Affinity) | Native, editable app files | — | Working files and project archives | Sending 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?
SVG is vector, lightweight and transparent; PNG supports transparency too. A JPG always has a solid background.
Where to get images (legally)
| Source | What to keep in mind |
|---|---|
| Your own or the client's photos | The 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 images | Check 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 media | Almost always owned by someone. "I found it online" isn't a license. |
Basic retouching every designer does
- Crop and straighten: apply the rule of thirds (lesson 5) and fix tilted horizons.
- Exposure and contrast: rescue dark or flat photos with Levels or Curves.
- White balance: remove color casts (photos that look too yellow or too blue).
- 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.
- Blemish cleanup with the healing brush or content-aware fill.
- Non-destructive editing: use adjustment layers and masks instead of erasing or painting over the original, so you can change your mind later.
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?
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
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.
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?
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
- Take a photo with your phone and note its pixel dimensions. How large could you print it at 300 PPI?
- 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.
- Remove the background from an object and export it as a transparent PNG.
- 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.
Create your account in 30 seconds, mark your lessons and download your certificate at the end.