# Image Compression

> Making a picture file smaller. One way keeps each pixel. One way drops a bit of detail.

**Field:** Design  
**Category:** Visual Communication  
**Also known as:** Lossy Compression, Lossless Compression

## Think of it like

It is like packing a suitcase. Fold well and it all fits, or leave a few things behind.

## Definition

Image compression makes an image file smaller. Lossless compression, used by PNG, packs the data tighter but keeps every pixel. Lossy compression, used by JPEG, throws away detail the eye will not miss. Lossy files are much smaller. Too much of it makes blurry blocks. WebP and AVIF can do both, and are often smaller still.

## Example

A shop saves its product photos as JPEG at 80% quality. Each page loads in half the time, and nobody sees a difference.

## Why it matters

Pictures are often the heaviest part of a web page. Smaller files make the page load faster.

## Common mistake

Saving a logo or a screenshot as JPEG. Sharp edges and text get blurry smudges; use PNG or SVG.

## Three principles

- **Lossless keeps all.** PNG: every pixel stays.
- **Lossy drops detail.** JPEG: much smaller files.
- **Match the image.** Photos lossy, flat graphics lossless.

## Related terms

- [Raster Image](https://learn.benibix.com/term/design/raster-image)
- [Image Resolution](https://learn.benibix.com/term/design/image-resolution)
- [Scalable Vector Graphics (SVG)](https://learn.benibix.com/term/design/scalable-vector-graphics)
- [Video Codec](https://learn.benibix.com/term/design/video-codec)
- [Animated GIF](https://learn.benibix.com/term/design/animated-gif)
- [Joint Photographic Experts Group (JPEG)](https://learn.benibix.com/term/design/jpeg)
- [Portable Network Graphics (PNG)](https://learn.benibix.com/term/design/png)

## Taught in

- [Pixels and Image Resolution](https://learn.benibix.com/learn/design-visual-communication/pixels-and-image-resolution): Color and Images, 8/13

---

Source: https://learn.benibix.com/term/design/image-compression
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-17
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
