Chuyển đến nội dung

Bài 25 · Images and Graphics

Choosing Image File Formats

Compare JPEG, PNG, GIF, WebP, AVIF, SVG, TIFF and PDF, understand lossy and lossless compression, and choose the right file for each design delivery.

The same picture can be saved in many formats. Each format makes different trade-offs between quality, file size, features and support. Choosing well keeps your work sharp and your files practical.

What you will learn

  • The difference between lossy and lossless compression
  • What the most common formats are good for
  • How transparency and animation affect your choice
  • How to manage working files and delivery files

Lossy and lossless

Compression makes files smaller.

  • Lossless compression keeps all the image data that you saved. When you open the file, the pixels come back exactly.
  • Lossy compression throws away some information to get a much smaller file. At gentle settings, the change may be hard to see. At strong settings, you may see blocky patches, smeared detail or halos around edges.

Saving a lossy file again and again after edits can add more damage each time. Edit from the original, and export lossy copies at the end.

The common formats

JPEG

JPEG uses lossy compression in its usual form. It is widely supported and works well for photographs. It does not support transparency. It is a weaker choice for sharp text and flat shapes, where artifacts are easy to see.

PNG

PNG is lossless. It supports transparency, including partly transparent pixels. It suits screenshots, interface graphics and flat artwork with crisp edges. Photos saved as PNG are often much larger than as JPEG.

GIF

GIF is limited to a palette of up to 256 colors in each frame. It supports simple animation. A pixel can be fully transparent, but not partly transparent. Soft edges and photos often look rough.

WebP and AVIF

These newer formats are used mainly on screens. Both can use lossy or lossless compression and can support transparency and animation. They often make smaller files than older formats at similar visual quality, but results depend on the image and settings. Check that every tool and platform in your workflow accepts them.

SVG

SVG is a vector format written as text. It is widely used on the web for icons, logos and simple illustrations. It can also contain raster images. Because SVG files can contain scripts and links, treat files from unknown sources with care.

TIFF

TIFF is often used in print and archiving. It can store images without loss and can support CMYK color. Files are often large, and web browsers do not generally display them.

PDF

PDF is a document format. It can contain vector shapes, text, raster images, fonts and several pages. It is a very common way to send finished work to a printer. A PDF is only as good as what is inside it and how it was exported.

A choosing table

Need Good first choice
Photograph for a web page JPEG, WebP or AVIF
Screenshot with small text PNG or lossless WebP
Logo on a web page SVG
Raster graphic with a see-through background PNG or WebP
Print-ready flyer PDF that follows the printer's settings
High-quality photo for a print layout TIFF or a high-quality JPEG, as the supplier prefers

These are starting points. The platform or supplier may have its own rules.

Transparency

Transparency lets the background show through. The information is often called an alpha channel.

If you save a transparent graphic as JPEG, the see-through areas are filled with a solid color, often white. A checkerboard pattern in a design app usually means "transparent here". If you can see that checkerboard in the final picture, the image probably contains real gray squares and is not transparent at all.

Test transparent graphics on both light and dark backgrounds. This shows leftover light edges, sometimes called fringes.

Working files and delivery files

Your editing app usually has its own working format. It keeps layers, editable text and effects. Delivery formats are made from it.

A good habit is:

  1. Source: the original photos and artwork, untouched.
  2. Working file: your layered, editable design.
  3. Exports: copies for each use.

Name files clearly. For example:

market-poster-a3-print-v04.pdf

This is much more useful than final-final2.pdf. Include the project, the use, the size and a version number.

A worked example

A small charity needs its new announcement in three places:

  • Website: the photo as a compressed WebP or JPEG, and the logo as SVG. The headline is real page text.
  • Social post: a PNG or high-quality JPEG at the size the platform asks for. Check how it looks after upload, because platforms may compress it again.
  • Printed flyer: a PDF with bleed and the settings the printer requests.

One design, three deliveries. None of them replaces the editable working file.

How to check an export

Open the exported file itself, not the working file. View it at 100%. Look at edges around text, smooth skies, gradients and dark areas. Check the file size, the pixel dimensions and the transparency. Then open it on another device if you can.

Common mistakes

  • Saving flat text graphics as strongly compressed JPEG. Edges become smudged.
  • Expecting JPEG to stay transparent. It cannot.
  • Renaming the file ending to convert it. Use an export or convert command.
  • Keeping only the flattened export. Future edits become slow and lossy.

Try it

Pick the format
Feature match

Check your understanding

Quick check · 4 questions

of 4 answered You scored / 4 · perfect!

  1. 1. Which common format does not support transparency?

    JPEG has no transparency, so see-through areas are filled with a solid color.
  2. 2. What is true of lossless compression?

    Lossless means no saved image data is thrown away. It does not promise the smallest file.
  3. 3. What is a limit of GIF?

    GIF supports animation and browsers open it, but its color palette is limited.
  4. 4. Why keep a layered working file after exporting?

    The working file keeps editable layers and text for later changes.

Summary

  • Lossless keeps data. Lossy trades some data for smaller files.
  • JPEG suits photos, and PNG suits crisp or transparent raster graphics.
  • SVG is a vector format. PDF is a flexible document format.
  • Test exports and follow platform or printer requirements.
  • Keep sources, working files and exports separate.

Next: Choosing, Cropping and Licensing Images

Theo dõi tiến độ của bạn

Tạo tài khoản miễn phí để đánh dấu bài đã học và tiếp tục từ chỗ bạn dừng lại trên mọi thiết bị.