Skip to content

How do you reduce image file size without losing quality?

Open this page in a new chat

Short answer

Lower the quality setting to about 80, send newer, smaller formats such as AVIF to browsers that support them, and remove the hidden camera data stored in each file. In our test, these steps cut an 800 px product photo from 219 KB to 32 KB, and it still looked the same at 100% zoom. Sirv does all three automatically.

After reading this you will know

  • The difference between lossy and lossless compression
  • Which quality setting suits product photos, with our test numbers
  • How much space hidden camera data takes, and when to keep it
  • How much smaller PNG graphics get as WebP or AVIF
  • What an image CDN does for you on every request

What is the difference between lossy and lossless image compression?

Lossy compression throws away detail your eye barely notices to make a much smaller file, and lossless compression keeps every pixel and finds a shorter way to store them.

JPEG, AVIF and most WebP files are lossy. PNG is lossless, and WebP can be either.

For product photos, lossy compression is the right choice, because it saves the most for the least visible change.

Use lossless only where every pixel must stay exact, such as a logo with sharp edges or a screenshot with small text.

Lossy compression adds up every time a file is saved again.

Upload your originals at high quality, at least 92% for JPEG, and let your image CDN (the service that stores your images and sends them to visitors) compress them once on the way out.

What quality setting (q=80 vs q=60) delivers the best balance for ecommerce product photos?

A quality of 80 is the best balance for most product photos: in our test it looked the same as 100 and the file was 78% smaller.

At 60 we first saw a difference, and at 40 the photo was clearly blocky.

Quality is a number from 0 to 100 that sets how much fine detail the file keeps, and we compared each version at full size on screen (100% zoom).

QualityWhat we saw at 100% zoomSizeSaving vs q=100Use it for
q=100The reference219.5 KB0%Nothing on a web page
q=90No difference74.1 KB66%Hero images with fine detail
q=80 (default)No difference49.0 KB78%Most product photos
q=70No difference we could see36.9 KB83%Large lifestyle photos
q=60Smoother skin, faint blocks on the forehead30.3 KB86%Small thumbnails
q=40Blocky around the eyes and brows22.0 KB90%Avoid for products

Sirv test, 10 Nov 2026: demo.sirv.com/look.jpg as JPEG, 800 px wide, compared side by side at 100% zoom. A sofa and a headphones photo gave similar savings at q=80: 71% and 75%.

The format matters as much as the number.

The same photo as AVIF at q=80 was 31.6 KB, smaller than the JPEG at q=60, and it scored higher than the JPEG at q=80 on SSIM, a standard test of how close two images look (1 means identical).

For developers, the scores were 0.961 for AVIF at q=80 and 0.956 for JPEG at q=80.

On Sirv, 80 is already the default. To change it, add q to the image URL:

https://demo.sirv.com/look.jpg?w=800&q=70

How much file size do you save by stripping EXIF and camera metadata?

Removing metadata saved 18% to 27% of the file in our tests on 800 px photos.

Metadata is hidden text stored inside an image: the camera model and settings, the date, sometimes the GPS location, editing history and copyright notes.

Visitors never see it, but they still download it.

BlockWhat it holdsPhoto edited in GIMPPhoto from a Canon camera
EXIFCamera model, settings, date, GPS8.6 KB4.4 KB
XMPEditing history, keywords4.6 KB9.1 KB
IPTCCaption, credit, copyright0.1 KB6.0 KB
ICCColor profile, which tells the screen how to show the colors0.7 KB0.6 KB
Total14.0 KB, 18% of the file20.0 KB, 27% of the file

Sirv test, 10 Nov 2026: demo.sirv.com/oman.jpg and research/color-profiles/example-Adobe_RGB_1998.jpg at 800 px, requested with strip=0 and each metadata block measured.

Sirv removes metadata by default, so the first photo came back at 62.4 KB instead of 76.4 KB.

Sirv keeps it when an image uses a wide color profile such as Adobe RGB, as the second photo does, because removing the profile would change its colors (color profiles).

Some profiles, including the common “sRGB IEC61966-2.1”, make Sirv keep the metadata too.

For whoever builds your site: adding ?info to an image URL shows which profile an image has, and adding strip=0 keeps the metadata on purpose, for example for copyright details.

Why does converting PNG graphics to WebP or AVIF save so much file size?

WebP and AVIF save so much because they compress smooth areas and edges better than PNG and still keep a transparent background.

In our test, AVIF was 65% to 76% smaller than an optimized PNG (the smaller PNG that Sirv makes by default) for a product cut-out and a flat badge, and 94% smaller than the same badge as a plain PNG.

PNG graphicPlain PNGOptimized PNGWebPAVIF
Bottle cut-out, 640 × 1,300 px709.0 KB176.7 KB156.5 KB62.5 KB
Warranty badge, 949 × 862 px438.3 KB103.2 KB46.7 KB24.6 KB
Small logo, 823 × 411 px11.8 KB7.4 KB11.0 KB6.4 KB

Sirv test, 10 Nov 2026: each PNG requested at its own size with format=png, png.optimize=true, format=webp and format=avif. All versions of the bottle and logo kept their transparent background.

Small logos gain the least, and the WebP of our logo was bigger than the optimized PNG.

Sirv’s default format picks the smallest version each browser can show, so you don’t have to test each file yourself.

How does an image CDN compress images automatically on the fly?

The CDN compresses each image the first time someone asks for it, then keeps that copy so every later visitor gets it straight away.

On Sirv, every request gets quality 80, metadata removed and the best format for the browser, unless the URL says otherwise.

In our test, a size nobody had asked for took 0.79 seconds the first time and 0.31 seconds three seconds later, served from the stored copy.

Sirv says it makes new versions in 0.15 seconds on average and serves them from 24 CDN locations to 50,000+ customers.

Image processing is unlimited on every plan, including the free plan, and paid plans start at $19 a month.

Leave the format out of your URLs, or use format=optimal, which is the same thing. Other image CDNs use format=auto, but on Sirv that returns an error and the image won’t show.

What is the step-by-step image compression checklist for webmasters?

Work from the original to the page, and check each step before the next one.

StepDone when
1. Export originals in sRGB, the standard web color setting, at least 92% JPEG qualityNo original is already heavily compressed
2. Upload originals to Sirv, not resized copiesOne file per photo, at least 2,500 px wide
3. Leave quality at 80, or test 70 on large photosYou see no difference at 100% zoom
4. Leave the format out of your URLsIn Chrome, right-click the page, choose Inspect, open Network and reload: the Type column shows avif
5. Keep hidden camera data only where you need itOnly images that must carry copyright details keep it
6. Upload PNG product photos to Sirv and use their Sirv linksCut-outs arrive as AVIF or WebP with a clear background
7. Compare the page before and afterThe images on the page add up to less

Once these steps are done, every new photo you upload gets the same treatment automatically, so the savings keep coming without more work.

Back to top