
●
What are Design Subscriptions?
Discover what can be achieved in 1 month of SLICK Plus. Who we are Imagine…
|

Choosing the right image format can make your website faster, your images sharper, and your content look more professional.
Images are stored digitally in two fundamentally different ways: as bitmaps (pixels) or as code (instructions). Understanding this difference explains why some images get blurry when resized while others stay perfectly sharp.
What they are
A bitmap image is made up of a grid of tiny squares called pixels. Each pixel stores a color value. When you zoom in far enough on a photo, you can actually see these individual squares.
How they’re stored
The image file saves information like:
Think of it like a giant spreadsheet where each cell contains a color.
Common bitmap formats
What bitmap images are good at
Limitations
Simple example
A 100×100 pixel image contains 10,000 color squares. If you stretch it to 500×500, those same pixels are just enlarged—no new detail is added.
What they are
Vector images are not made of pixels. Instead, they’re stored as mathematical instructions that tell the computer how to draw the image.
Rather than saying “this pixel is blue”, the file says things like:
How they’re stored
The file contains:
Think of it like a recipe instead of a photograph.
Common vector formats
What vector images are good at
Advantages
Limitations
| Bitmap (pixels) | Vector (code) |
|---|---|
| Made of pixels | Made of instructions |
| Fixed resolution | Infinite resolution |
| Blurry when enlarged | Always sharp |
| Best for photos | Best for logos & icons |
| JPG, PNG, GIF | SVG, AI, EPS |
When you choose an image format, you’re really choosing how the image is stored:
That’s why photos are almost always JPGs or PNGs, while logos are often SVGs.
The four most common image formats you will encounter are:
Each format is best for different situations, so we’re going to look at the different types of images you might want to show, and what you’ll want to do as a result.
JPEG’s superpower is that it throws away information you’re unlikely to notice.
It’s designed specifically for photographs, where tiny changes in color and detail are hard for the human eye to detect.
Our eyes:
JPEG takes advantage of this by:
You still see a great-looking photo, but the file stores far less data.
Instead of saving every pixel individually, JPEG:
It looks for patterns like:
This lets JPEG describe large areas efficiently rather than pixel by pixel.
When you save a JPEG, you choose a quality level.
Behind the scenes:
This information is permanently discarded, which is why:
That trade-off is exactly why JPEG is so good for photos on the web.
JPEG compression can create:
That’s because sharp edges and flat colors are very noticeable to our eyes—and JPEG wasn’t designed for them.
Bottom line:
JPEG excels at photos, not graphics.
PNG takes a completely different approach.
Instead of removing data, PNG tries to store the same data more efficiently.
With PNG:
If you save and re-save a PNG:
This makes PNG ideal for images where precision matters.
PNG compression focuses on patterns like:
It says, essentially:
“This next pixel is the same as the previous one.”
This works incredibly well for:
PNG uses a clever trick:
When images have clean edges and flat colors, those differences are tiny—so the file compresses very well.
Photos, however, have constant variation, so PNG files for photos can get very large.
PNG supports:
This transparency data is also compressed losslessly, which is why PNG is preferred over JPEG whenever transparency is needed.
What GIF is
GIF is a bitmap (pixel-based) image format best known for short looping animations. It’s one of the oldest web image formats and is supported almost everywhere.
How GIF works (at a high level)
Because of the color limit, GIF files are not very detailed, but they’re lightweight enough for simple motion.
What GIF is good at
Limitations
In short:
GIF is about motion, not image quality. It also used to be commonly used for graphical elements with solid blocks of colour, but that is now mostly handled by the PNG format which uses a much better compression algorithm.
What SVG is
SVG (Scalable Vector Graphics) is a vector format, meaning images are stored as instructions and shapes, not pixels.
How SVG works (at a high level)
Instead of saving color for each pixel, SVG files describe:
The browser draws the image on the fly using this information.
What SVG is good at
Why SVG is special
Limitations
In short:
SVG is about precision, scalability, and flexibility.
| If you need to… | Use this image format |
|---|---|
| Show a photograph | JPG |
| Display a logo with transparency | PNG or SVG |
| Create scalable icons or logos | SVG |
| Solid blocks of similar colours | PNG or GIF |
| Share a short animation | GIF |
| Multiple graphical gradients | PNG or SVG |
| Keep text and edges super sharp | PNG or SVG |
Use JPG for:
Why it’s good:
Trade-offs:
In short:
If it’s a photo, JPG is usually the right choice.
Use PNG for:
Why it’s good:
Trade-offs:
In short:
Use PNG when clarity and transparency matter more than file size.
Use SVG for:
Why it’s good:
Trade-offs:
In short:
👉 If it’s a logo or icon, SVG is often the best possible choice.
Use GIF for:
Why it’s good:
Trade-offs:
In short:
👉 Use GIF for short, simple animations—but not for photos or high quality visuals.
Topics:
Share: