There are two main ways to make an image smaller. Resizing cuts the number of pixels across and down. Compression leaves the pixel count alone and packs the data more tightly. The results differ, so picking the right one for the job is how you lose less quality. Knowing how each works also answers the usual complaints: why the image went blurry after you shrank it a lot, and why it still won't get small enough.
Lowering resolution (resizing)
Resizing reduces the width and height in pixels. Take a 4000×3000 photo down to 1600×1200 and the pixel count drops sharply, and the file size drops with it. Originals used on the web or on screen are usually much larger than the size they are shown at, so resizing to the display size trims the file without changing what people see.
Pixels you remove cannot be brought back, though. If you might print large later, keep the original somewhere else.
Increasing compression
Compression keeps the pixel count and lowers a JPG's quality value. Lower quality means a smaller file, but push it too far and colors clump together and blotches (artifacts) appear along edges. Photos hold up to a fair amount of compression. Images with lots of text or sharp lines get messy quickly.
Measured: how much does halving the width save?
People often say resizing beats compression, but rarely with numbers attached. We held JPG quality at 80 and reduced only the width of the same photo.
| Width | Pixel size | Pixel count | File size |
|---|---|---|---|
| 100% | 1600x1067 | 1,707,200 | 269 KB |
| 75% | 1200x800 | 960,000 | 105 KB |
| 50% | 800x534 | 427,200 | 33 KB |
| 25% | 400x267 | 106,800 | 5 KB |
Look at the halfway row. The pixel count falls to a quarter, but the file drops from 269 KB to 33 KB, roughly 8.1 times smaller. Fewer pixels means neighboring pixels resemble each other more closely, so compression efficiency rises alongside. That is why the size comes before the quality slider.
When quality loss is fine, and when it isn't
Before shrinking anything, ask whether the purpose can live with the loss.
- Usually fine: social media uploads, images in a blog post, preview thumbnails, email attachments
- Be careful with: printed material, product photos, text-heavy documents, originals you are archiving
- Either way, don't delete the original. Keeping it next to the smaller copy means you can redo the work later
Web and print follow different rules
The web counts screen pixels, so matching the display size is enough, and for faster loading you can shrink boldly. Print counts dot density (usually around 300 dpi), so an image that looks fine on screen can come out soft on paper. For print, keep plenty of resolution and compress lightly.
Start from a target size
Often the size limit is decided before anything else: a 5 MB cap on attachments, 2 MB on a forum. In that case it is simpler to compress toward the target. Switching's compress tool fits the file under the size you set, and the resize tool handles the resolution. Both run in your browser, so the file never goes to a server.