Image Compression and Quality Settings, Done Properly
How to commission image compression: choosing formats by content, setting quality per use, comparing supplier quotes, spotting red flags and judging results.
On this page
- What You Are Actually Buying When You Commission Compression Work
- Choosing Formats by Content: Photographs, Graphics and Transparency
- Quality Numbers, Chroma Subsampling and Why "80" Means Little on Its Own
- Setting Tiers for Each Use: Zoom, Gallery, Listing and Thumbnail
- What Drives the Cost of a Compression and Conversion Project
- Questions to Ask a Supplier Before You Sign
- Comparing Quotes Like for Like
- Worked Example: An Illustrative 4,000-Image Store Conversion
- Red Flags in Proposals, Pilots and Deliverables
- How to Judge the Result Yourself
- Keeping Settings Right After Launch: Masters, Pipelines and Governance
- When to Bring in Help, and What Kind
- Working on something like this?
Image compression and quality settings decide how heavy your pages are, how sharp your product zoom looks, and how much bandwidth every visitor spends before they see anything useful. The job sounds mechanical: pick a format, pick a number, export. In practice it is a set of judgment calls about content type, viewing context and acceptable loss, and the defaults built into most editing and content tools rarely strike the best balance between file size and visible quality.
This handbook is written for the person commissioning the work: an ecommerce manager with a slow category page, a marketing lead whose hero images look soft on phones, or an in-house team facing a library of several thousand legacy JPEGs and PNGs that need converting to modern formats. It covers what to ask for, what drives the cost, how to compare suppliers on something other than price per image, the red flags that signal a supplier is cutting corners, and how to judge the finished result yourself without needing to become a compression engineer.
If you also manage retouching, color or background work, compression is the last step in that chain, and it can quietly undo everything upstream. A beautifully masked product shot saved at the wrong settings arrives on the page with banding in the gradient, smeared color on the logo and a halo around the edge. Getting this step right protects the investment you have already made.
What You Are Actually Buying When You Commission Compression Work
A compression project is not one deliverable. It is usually four things bundled together, and a good supplier will separate them in the proposal so you can see where the effort goes.
- A format policy. Which format each class of image should use, and what the fallback is. Photographs, flat graphics, images with transparency and images with text overlays behave differently under compression and need different answers.
- A settings profile per use. The quality level, chroma subsampling, color profile handling, metadata policy and pixel dimensions for each rendition: product zoom, main gallery, category listing, thumbnail, social share image and so on.
- The processed files. Derivatives exported from high-quality masters, named and organized so your platform can find them.
- A repeatable process. Either a documented manual workflow or, more usefully, an automated step in your publishing pipeline so that next month's uploads get the same treatment without anyone remembering to do it.
Many quotes cover only the third item. That can be fine for a one-off campaign, but for a store or content site that publishes every week it means you pay for the same thinking again next quarter, and the quality drifts as soon as someone uploads a file straight from their camera or design tool.
- Modern formats WebP and AVIF are supported by all major browsers, so they can be the default for most photographic content.
- Lossless formats PNG suits graphics with sharp edges and transparency, not photographs.
- Quality numbers Settings such as "quality 80" are encoder-specific and cannot be compared between tools.
- Chroma subsampling Reduces color resolution and can blur fine colored detail such as red text.
- Lighthouse Its audit flags images that could be encoded more efficiently, which gives you an independent check.
Keep those five facts in mind as you read proposals. Most of the mistakes and most of the inflated claims in this field trace back to ignoring one of them.
Choosing Formats by Content: Photographs, Graphics and Transparency
The first decision, and the one with the largest effect on file size, is format. Settings tuning matters, but choosing the wrong format can make a file several times larger than it needs to be before any tuning happens. The practical rule is to choose by what is in the image rather than by habit or by what the design tool offers first.
Photographs and photographic product shots
Continuous-tone images, where color shifts smoothly and there are few hard edges, compress well with lossy formats. JPEG remains universally compatible. WebP and AVIF usually reach the same visible quality at a smaller size, and because both are now supported by all major browsers they can serve as the primary format for most sites. The web.dev guidance on choosing the right image format walks through the trade-offs between them, including encoding speed, which matters when you process large libraries: AVIF tends to be slower to encode, which affects batch turnaround and on-the-fly conversion.
Graphics, logos, charts and screenshots
Images with flat color and sharp edges, such as logos, icons, diagrams, screenshots and text-heavy banners, are where lossy compression shows its artifacts most clearly: ringing around edges, blotchy flat areas and smeared colored text. PNG suits these graphics, and lossless WebP is a reasonable alternative. Where the source is genuinely vector, such as a logo or icon, a vector format is often the better choice than any raster export.
Transparency
Cut-out product images on transparent backgrounds are a common source of oversized files. Teams export them as PNG because PNG supports transparency, and the result is a photograph stored losslessly, which can be many times larger than necessary. WebP and AVIF both support transparency with lossy compression of the color data, which is usually the better answer for a photographic cut-out. If you commission image masking for complex edges such as hair or fur, specify the delivery format for the transparent derivative explicitly, and check how the edge holds up after compression, because soft alpha edges are where banding and fringing appear first.
MDN's image file type and format guide is a useful neutral reference if a supplier's recommendation surprises you. For a broader grounding on the formats themselves, our practical guide to image file formats covers the history and trade-offs in more depth than this handbook needs to.
| Content type | Typical first choice | Fallback or alternative | What to watch for |
|---|---|---|---|
| Product photograph on white | AVIF or WebP, lossy | JPEG | Soft texture on zoom; off-white background banding |
| Cut-out with transparency | WebP or AVIF with alpha | PNG only if edges demand it | Fringing and halos on soft edges |
| Logo, icon, diagram | Vector where possible; PNG or lossless WebP | High-quality lossy only if photographic | Ringing around edges, color bleeding |
| Screenshot or UI capture | PNG or lossless WebP | Lossy WebP at high quality | Blurred small text, blocky flat areas |
| Banner with text over photo | Lossy with full-resolution chroma, or text as live HTML | Split into photo plus overlay | Smeared red or blue lettering |
| Print-bound master | TIFF or high-quality original | Not a web format question | Never deliver web derivatives for print |
Quality Numbers, Chroma Subsampling and Why "80" Means Little on Its Own
Buyers often ask for "quality 80" or "quality 85" because they have seen those numbers recommended. The problem is that quality settings are encoder-specific. Quality 80 in one JPEG encoder does not produce the same result as quality 80 in another, and the scale in a WebP or AVIF encoder is not the JPEG scale at all. A supplier who quotes a number without naming the encoder and the other settings has told you almost nothing.
What a complete settings specification contains
- Encoder and version. For example MozJPEG, libjpeg-turbo, libwebp or libavif, or the specific export engine inside an editing tool or image CDN.
- Quality or effort parameters. The quality value, plus any speed or effort setting, which trades encoding time for smaller files.
- Chroma subsampling. Whether color is stored at full resolution (4:4:4) or reduced (4:2:0 is common).
- Color profile handling. Whether images are converted to sRGB and whether the profile is embedded or stripped.
- Metadata policy. What EXIF, XMP and IPTC data is removed and what is kept, such as copyright or credit fields.
- Dimensions and resampling. Target pixel sizes for each rendition, and the resampling method used to reach them.
Why chroma subsampling deserves its own line
Chroma subsampling stores color information at a lower resolution than brightness, on the basis that the eye is more sensitive to changes in brightness. For most photographs it saves meaningful size with no visible cost. It can, however, blur fine colored detail, and the textbook example is red text: small red lettering on a white or dark background can look fuzzy or bled after 4:2:0 subsampling. Fabric patterns with fine colored stripes, colored product labels and brand marks in saturated reds and blues suffer in the same way. A supplier who understands this will use full-resolution chroma selectively for images that need it rather than globally, since keeping full chroma on everything increases file size across the library for no benefit on most images.
Resize before you compress
No quality setting rescues an image served at twice the pixel dimensions it is displayed at. Resizing to the right rendition size is often the largest single saving, and it is also where sharpening decisions belong: a small amount of output sharpening after downsampling keeps thumbnails crisp. Ask whether the supplier resizes from the master for each rendition or chains resizes, which accumulates softness.
Red flag: A proposal that specifies a single quality number "for all images" and no encoder name.
- It suggests the supplier will run everything through one preset.
- It makes their results impossible to reproduce in your own pipeline later.
- Ask for the full settings specification per rendition before you approve a test batch.
Setting Tiers for Each Use: Zoom, Gallery, Listing and Thumbnail
One quality setting for every image on the site is one of the most common mistakes, and it fails in both directions. A setting aggressive enough to keep thumbnails light makes product zoom look soft; a setting generous enough for zoom wastes bytes on every category grid. The fix is a small set of tiers, each tuned for how the image is viewed.
Product zoom
Zoom images are inspected closely by customers deciding whether to buy, so texture, stitching, grain and print detail need to survive. They justify higher quality and larger dimensions, and they are loaded on demand, so their size affects fewer page views than a listing image. Soft zoom is one of the clearest signs that a single setting has been applied everywhere.
Main gallery and hero images
These are large on screen and often the largest request on the page, so they carry the biggest page-weight impact. They need a careful balance: high enough quality to look clean on a large display, but tuned hard because every visitor downloads them. Responsive image markup, with several widths offered through srcset and sizes, lets a phone download a smaller file than a wide desktop screen.
Category listings and thumbnails
Small images are displayed at low magnification, so compression artifacts are far less visible and settings can be more aggressive. Because a category page may load dozens of them, savings here multiply. The main quality risk is not blockiness but softness from resizing, which output sharpening addresses.
Social, marketplace and email renditions
Platforms that recompress uploads change the calculation. Sending a heavily compressed file to a service that will compress it again compounds the loss, so these renditions are usually exported at higher quality and left for the platform to reduce. Marketplace requirements on dimensions and backgrounds also apply, and social ad placements tend to recompress heavily, so check each platform's current upload guidance before fixing these settings.
| Tier | Viewing context | Quality priority | Size priority | Special handling |
|---|---|---|---|---|
| Zoom | Inspected at high magnification | High | Moderate (loaded on demand) | Full chroma for fine colored detail |
| Gallery / hero | Large on screen, every visitor | High | High | Several widths via srcset |
| Listing | Medium, many per page | Moderate | High | Output sharpening after resize |
| Thumbnail | Small, many per page | Lower | Very high | Sharpening; strip metadata |
| Platform upload | Recompressed by platform | High | Low | Match platform specs; avoid double loss |
What Drives the Cost of a Compression and Conversion Project
Suppliers price this work in very different ways: per image, per rendition, per hour, as a fixed project fee, or as a setup fee plus a pipeline integration. Rather than compare headline prices, understand what drives effort so you can tell whether a quote is thin or padded.
Volume and variety
A thousand images of a single product type shot on the same set can share one settings profile with light spot-checking. A thousand images drawn from ten years of campaigns, mixed photographers, screenshots and logos need classification before anything can be exported, and classification is where time goes.
Condition of the source files
Well-kept high-quality masters make the job straightforward. When the only surviving copies are already-compressed JPEGs, every further lossy save compounds the loss, and the supplier has to work harder to avoid visible degradation, sometimes with cleanup retouching beforehand. Legacy formats and inconsistent color profiles add work too; converting legacy image formats covers what that involves.
Number of renditions
Each additional tier multiplies output files and quality checks. Five widths in two formats is ten files per source image. Automated generation makes this cheap to produce, but checking still takes time.
Degree of manual review
Fully automated processing with sampling is inexpensive per image. Human review of every image at 100% is slow and costly and rarely justified outside hero and zoom sets. A sensible quote spells out the sampling rate for each tier.
Pipeline integration
Building compression into your CMS, digital asset manager, build process or image CDN is a one-time engineering cost that reduces ongoing cost. Whether it is worth it depends on how often you publish.
Turnaround
Rush timelines raise costs mainly because they compress the testing phase, which is precisely the phase that protects quality.
Questions to Ask a Supplier Before You Sign
The quickest way to separate a specialist from a batch-processing shop is to ask how they will decide, not just what they will deliver. The answers below should be specific, written down and consistent with each other.
- Which formats will you use for photographs, graphics and transparent images, and what is the fallback for each?
- Which encoder and version will you use, and what exact settings per rendition tier, including chroma subsampling?
- Will you work from our high-quality masters, and what happens if only compressed files exist?
- How many rendition tiers do you recommend for our site, and why those sizes?
- How will you check quality: side-by-side at 100%, on which devices and screen types, and at what sampling rate?
- How will you handle color profiles and metadata, including copyright and credit fields we need to keep?
- What file naming and folder structure will you deliver, and will it fit our platform's upload rules?
- Can the settings be reproduced in our own pipeline or image CDN after the project ends?
- What before-and-after measurements will you report, and how are they calculated?
- What is your process if we reject a batch, and is rework included?
Two of these deserve emphasis. The question about masters reveals whether the supplier understands generational loss. The question about reproducibility reveals whether you are buying a capability or a one-off export. If the answer is that settings are proprietary, you will be back in the same position the next time you add products.
It also helps to hand the supplier a written brief rather than explain verbally. The structure in our guide to image briefs for retouchers adapts well: state the uses, the platforms, the priority images and the approval process.
Red flag: A supplier who proposes to "optimize" your existing live JPEGs rather than export fresh from masters.
- Recompressing a lossy file adds a second round of loss on top of the first.
- It is acceptable only when masters genuinely do not exist, and then it should be flagged, tested and priced as a salvage job.
Comparing Quotes Like for Like
Quotes for this work rarely line up neatly. One supplier offers a low per-image price for automated batch processing; another quotes a higher project fee that includes a settings study, a test batch and pipeline integration. The scorecard below turns those into comparable criteria. Rate each supplier on each row, and weight the rows by what matters for your situation: a store publishing new products weekly should weight reproducibility heavily, while a one-off campaign can weight turnaround.
| Criterion | What a strong answer looks like | What a weak answer looks like | Supplier A | Supplier B | Supplier C |
|---|---|---|---|---|---|
| Format policy | Chosen by content type, with fallbacks | "Everything to WebP" or "everything to JPEG" | |||
| Settings specification | Encoder, quality, subsampling, profile and metadata per tier | A single quality number | |||
| Source handling | Exports from masters; flags salvage cases | Recompresses whatever is live | |||
| Rendition tiers | Separate zoom, gallery, listing, thumbnail settings | One size, one setting | |||
| Quality checking | Side-by-side at 100%, several devices, stated sampling | "Visually lossless" with no method | |||
| Measurement | Before-and-after bytes per page template, Lighthouse findings | Unsupported percentage claims | |||
| Reproducibility | Documented settings or pipeline integration you own | Proprietary preset, no handover | |||
| Rework terms | Defined rejection criteria and included rework | Rework billed hourly |
Leave the supplier columns blank until you have answers in writing, then score each row on a simple scale such as 1 to 3. A cheaper quote that scores poorly on settings specification and reproducibility is not cheaper over a year: you pay for the gap in slower pages, soft zoom and repeated projects.
Ask every shortlisted supplier to process the same test batch of 20 to 50 representative images, drawn from your hardest cases: a product with fine texture, a cut-out with hair or fur, a graphic with small colored text, a dark image with smooth gradients and a bright one with near-white backgrounds. Compare the outputs side by side yourself. This is the single most informative step in the buying process, and most competent suppliers will agree to a paid or unpaid pilot.
Worked Example: An Illustrative 4,000-Image Store Conversion
The following example is illustrative, not a client project. The figures are realistic for a mid-sized online store but are intended to show the reasoning, not to predict your results.
A home goods store has 4,000 source product photographs and 300 graphics (badges, size charts and lifestyle banners with text). Every product has one main image and three alternates. The site currently serves JPEGs exported from the photo editor at its default setting, at 2,400 pixels wide for every use, and the category template scales them down in the browser.
Step 1: Measure the starting point
The team runs Lighthouse on three templates: a category page, a product page and the homepage. The efficiently encode images audit flags most product images, and the byte totals in the network panel give a baseline. Suppose the category page downloads 48 listing images averaging 420 KB each, about 20 MB of images for one page view, because full-width files are being scaled down in the browser.
Step 2: Define tiers
The supplier proposes four tiers: zoom at 2,000 pixels, gallery at 1,200 pixels with smaller srcset widths, listing at 600 pixels with a 2x variant for high-density screens, and thumbnail at 160 pixels. Each tier is exported to AVIF and WebP with JPEG as the fallback. Graphics with text go to PNG or lossless WebP; a handful of lifestyle banners are rebuilt with live HTML text over a photograph.
Step 3: Settings study
On a 40-image test set, the supplier exports each tier at several quality levels, compares them side by side at 100% against the master, and picks the lowest setting at which no reviewer can find a difference on the test devices. Zoom images with fine textiles and red labels get full-resolution chroma; the rest use 4:2:0.
Step 4: Recalculate the page
If the listing images now average around 45 KB at the 600-pixel tier, the 48-image category page carries roughly 2.2 MB of images at 1x, or somewhat more when the 2x variants are served to high-density phones. Most of that saving comes from resizing, not from the choice of format; format and quality tuning then take a further share off each file.
- Baseline Record image bytes per template and the Lighthouse image findings before anything changes.
- Classify Sort sources into photographs, cut-outs, graphics and text-heavy images, and flag anything without a master.
- Test Export a representative set at several settings per tier and compare side by side at 100%.
- Lock Write down the settings profile per tier, including encoder, subsampling and metadata policy.
- Produce Batch-export every tier from the masters, never from previously compressed derivatives.
- Verify Spot-check samples per tier on phones and desktops, rerun Lighthouse, and compare with the baseline.
- Automate Put the same settings into the upload pipeline so new images follow the policy automatically.
Two lessons from this example apply widely. First, the biggest savings usually come from resizing and from choosing the right format, not from shaving the quality number. Second, the zoom tier moved in the other direction: it became larger and sharper than before, because the old single setting had been too aggressive for close inspection. A good project improves quality where it matters while cutting weight elsewhere.
Red Flags in Proposals, Pilots and Deliverables
Beyond the two warnings already covered, several patterns indicate a supplier is optimizing for their own throughput rather than for your pages.
Percentage claims without a method
"We reduce image size by 80%" means nothing without knowing the starting point. Cutting 80% from oversized PNG photographs is easy; cutting 80% from already well-compressed JPEGs without visible damage is not. Ask how the figure was measured and on what.
PNG photographs in the delivery
PNG photographs that are many times larger than needed are a sign that the supplier chose format by habit or by transparency need without considering lossy alternatives. Check the largest files in any delivery first.
Judging only on a large, high-resolution desktop screen
Quality judged only on a high-resolution desktop screen misses how images look on phones, on lower-quality laptop panels and at the sizes customers actually see. Artifacts that disappear on one screen can be obvious on another, and some are more visible at small sizes, such as soft thumbnails. Calibrated monitors matter for color decisions; a reviewer on an uncalibrated screen can approve a color shift without noticing it.
Color shifts after export
If products look duller or shifted in hue after compression, color profile handling has gone wrong, usually a wide-gamut image exported without conversion to sRGB or with its profile stripped. For products where color accuracy drives returns, such as apparel and cosmetics, this is a serious defect, not a cosmetic one.
No versioning or traceability
If you cannot tell which master and which settings produced a given web file, you cannot fix problems later or re-export when formats change. Our article on versioning image files sets out a naming and version scheme that keeps derivatives traceable to their masters.
Newest format, lowest number
Be wary of a supplier whose whole method is "the newest format at the lowest quality number". Format and settings must be chosen by content and use. A graphic with small colored text can look worse in an aggressively compressed modern format than in a lossless one, and zoom images often need higher settings than the site's default, not lower ones.
How to Judge the Result Yourself
You do not need specialist tools to evaluate a compression delivery, but you do need a disciplined method. Informal glances at a finished page are how soft zoom and banded gradients get approved.
Side-by-side at 100%
Open the master and the derivative at the same pixel dimensions, at 100% magnification, next to each other. Look at the areas where compression fails first: smooth gradients such as skies, studio backdrops and shadows under products; fine texture such as fabric weave, wood grain and hair; hard edges around cut-outs and text; and saturated reds and blues, where chroma subsampling shows. Toggle between the two in the same window if your viewer allows it; differences that are invisible side by side often jump out when flipping.
Check at real sizes on real devices
After the pixel-level check, view the live pages on at least one current phone, one mid-range laptop and one large desktop monitor. The question here is different: not "is there any difference from the master" but "does this look right to a shopper at the size it is shown". Thumbnails that pass at 100% can look soft at display size if the resize lacked output sharpening.
Measure independently
Rerun Lighthouse on the same templates you baselined, and record image bytes per template. The encode-images audit gives you an independent, supplier-neutral signal about whether the images could be encoded more efficiently still. Treat it as a pointer, not a verdict: it measures byte efficiency, not whether a zoom image still shows the fabric weave.
Use written acceptance criteria
Write down before the project starts what counts as a rejection: visible banding in gradients on test devices, blurred colored text, halos on cut-outs, color shifts versus the master, missing renditions or wrong dimensions. The acceptance steps in image quality control checks and the review flow in client proofing for image sets translate directly to compression deliveries.
A useful rule of thumb: the best compression project makes most images smaller and some images better. If every file only got smaller, check the zoom images first.
Keeping Settings Right After Launch: Masters, Pipelines and Governance
A compression project that ends with a folder of files starts to decay the day new products are uploaded. The work that protects your investment is mostly organizational.
Keep high-quality masters and export derivatives from them
Store the highest-quality version of every image, whether that is the retouched TIFF, a high-quality JPEG or the original layered file, and treat web files as disposable derivatives. When a better format or encoder arrives, or your layout changes the display sizes, you re-export from masters rather than recompressing old outputs. Re-saving JPEGs repeatedly compounds loss, and every "quick fix" made by opening a web JPEG, editing and saving it again adds another generation. If the same images also serve print, the master policy has to satisfy both, because print needs full-resolution files in a print-appropriate color space that web derivatives cannot supply.
Automate compression in the publishing pipeline
The most reliable way to keep settings consistent is to take the decision away from individual uploaders. Options include image processing in your build step, a plugin or module in your CMS, rules in a digital asset manager, or an image CDN that generates formats and sizes on request. Whichever route you take, the settings profile from the project should be written into it, and someone should own the configuration.
Review periodically
Browser support, encoders and your own templates change. A light review every six to twelve months, repeating the baseline measurement and a small side-by-side test, catches drift before it becomes a new project. Review sooner if a redesign changes image display sizes, because rendition tiers are tied to layout.
A typical schedule looks like this:
- Week 1 Baseline measurement, source audit and classification of the library.
- Week 2 Settings study on a representative test set; written settings profile per tier agreed.
- Weeks 3 to 4 Batch production from masters, sampled quality checks, rework of rejected items.
- Week 5 Pipeline integration and handover of documented settings.
- Every 6 to 12 months Re-measure templates, retest settings against current encoders, and adjust.
These durations are a typical shape for a library of a few thousand images, not a promise; volume, source condition and integration complexity move them in either direction.
When to Bring in Help, and What Kind
Plenty of teams handle compression well in-house, especially once a pipeline is in place. Outside help earns its cost in three situations.
- Images dominate page weight. If Lighthouse and your network panel show images as the largest share of bytes on key templates, a structured settings study and rendition plan usually pays back quickly in faster pages.
- Product zoom looks soft. This usually means a single aggressive setting, chained resizing or recompressed sources. Fixing it combines compression expertise with retouching, because some sources need cleanup or image enhancement before they can be exported cleanly.
- A large library needs converting to modern formats. Classification, master recovery, rendition generation and verification at scale are where process discipline matters most, and where a batch-processing shortcut does the most damage.
The right partner can often handle the surrounding work as well: masking and cut-outs, color correction, retouching and format conversion, so compression is planned alongside the edits rather than bolted on afterward. Our image editing and graphic design services are set up to deliver retouched masters and web-ready derivatives from the same brief.
Whoever you work with, the same principles apply: choose format by content, define settings per use, keep masters, test side by side at 100% on real devices, measure before and after, and automate the result so it survives the next upload.
Verdict Commission image compression as a policy plus a pipeline, not a one-off export. Insist on a written settings specification per rendition tier with the encoder named, export only from high-quality masters, and judge suppliers on a shared test batch compared side by side at 100%. A supplier who makes your zoom images sharper while cutting category-page weight has done the job properly; one who only reports a percentage saving has not shown you enough.
Where this comes from
- MDN Web Docs — Image file type and format guide
- web.dev — Choose the right image format
- Chrome for Developers — Efficiently encode images
The figures and practices above come from the sources listed.
Working on something like this?
We take on Image Editing & Retouching work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.
Where to go next
Spotted something wrong? Report an error on this page. We correct on the page and say what changed.





