Choose analytics

Essential browser storage remembers your tool settings. Optional analytics helps us understand site use and loads only if you accept it. Image files, filenames and submitted URLs are not sent to analytics.

Read the Cookie Policy
Skip to content
CompressByURL
CompressConvertResizeTarget sizeBy URLWebsite scannerBlog
Start compressing
Homechevron_rightBlogchevron_rightWeb performance
Web performance

Fix GTmetrix “Efficiently encode images” with a controlled quality check

An encoding warning is a request to investigate wasted bytes, not permission to blur every image. Keep dimensions constant while comparing encodes, choose the least expensive acceptable result, and check that the live page uses it.

SV
Saipavan V
Sep 27, 20264 min read

Updated Oct 2, 2026

Fewer bytes. Clearer images.: topic-specific technical illustration
Editorial illustration

The short answer

  • checkHold dimensions constant during the encoding comparison.
  • checkInspect sensitive detail at the actual display size.
  • checkKeep the source original and verify the production replacement.
On this page
  1. Separate inefficient encoding from oversized pixels
  2. Choose visual acceptance criteria before moving the quality slider
  3. Run a small export experiment from one source
  4. Use lossless paths for images that cannot tolerate artifacts
  5. Deploy the selected bytes and catch stale variants
  6. Measure savings without claiming a matching speed increase

Separate inefficient encoding from oversized pixels

GTmetrix’s encoding recommendation concerns opportunities to make image files more efficient. Treat it separately from the sizing recommendation even if the same resource appears in both. Record the file URL and the visible use. A high-quality export of a small thumbnail and a gigantic camera original can waste bytes for different reasons.

Fixing dimensions first makes the encoding experiment easier to interpret. Keep a copy of the original and create one resized working source. From that source, compare multiple encoding settings. If you change crop, width, and quality together, you might get a smaller file but lose the ability to explain or reproduce the result.

Choose visual acceptance criteria before moving the quality slider

Decide what the reader needs to see. A product photograph may need readable model markings and smooth reflections. A tutorial screenshot may need exact text edges. A background texture can tolerate more loss than either. Write two or three visible criteria so quality review does not collapse into “looks fine on my laptop.”

Inspect the output at its intended display size, then zoom in on the most sensitive region. A zoomed inspection can reveal damage, but it should not force you to preserve invisible detail at unlimited transfer cost. Include a high-density screen in your check when the image serves one. Keep transparency against the actual page background.

Run a small export experiment from one source

Create an initial candidate, a more conservative candidate, and a more aggressive candidate. Record dimensions, format, bytes, and whether each meets the visual criteria. The labels are for your own experiment, not universal quality numbers. Different encoders interpret quality scales differently, so a matching number across formats is not a fair visual comparison.

Select the smallest candidate that passes. If two files look indistinguishable in the page, the larger one needs a reason to stay. If the smallest produces banding, ringing, or broken text, reject it. Do not treat every available byte reduction as free. A noticeable defect is an editorial or product problem even if an audit estimate looks attractive.

Use lossless paths for images that cannot tolerate artifacts

For screenshots and crisp interface graphics, try a lossless optimization path before a photographic lossy workflow. A large screenshot may also need fewer pixels, but resizing tiny labels can introduce its own blur. Sometimes the right edit is to crop irrelevant blank space or split an unreadable screenshot into focused details.

Keep format constraints in view. JPEG cannot preserve alpha transparency. A transparent asset can be compared in PNG and supported alpha-capable alternatives. If a site requires PNG, use the PNG optimization route rather than forcing a lossy format merely to satisfy a score. The acceptable output is defined by the use, not by the report label.

Deploy the selected bytes and catch stale variants

Upload the chosen export under a versioned filename when your asset workflow allows it. Update the page reference and any responsive candidates. Clear the relevant cache or wait for the normal deployment invalidation. Open the public page, inspect the requested URL, and compare the downloaded bytes to the file you approved.

Check a second page that shares the component. A CMS may regenerate images or a CDN may add its own transformation. Keep a deployment note with the original filename and approved settings so a later upload can follow the same standard. Do not silently overwrite a source used by print or another larger display context.

Measure savings without claiming a matching speed increase

Suppose an illustrative 400 KB file becomes a 160 KB candidate at the same dimensions. That is a 60% file-size reduction. It says nothing by itself about the page’s timing improvement: the image may be offscreen, cached, or blocked behind another bottleneck. Record the real byte change alongside the actual page measurements.

Use the browser compressor to compare candidates locally, download the accepted result, and rerun the same GTmetrix configuration after deployment. Finish when the right file is served and the image passes your visual acceptance check. If the audit remains, inspect the exact remaining URL rather than reducing quality blindly again.

  • Preserve an untouched source.
  • Compare identical dimensions and crop.
  • Reject artifacts that affect the image’s purpose.
  • Confirm the delivered file after publishing.

Common questions

What quality number should I use?

There is no universal setting. Start with your tool’s default, compare actual outputs, and choose the smallest file that meets your visual requirements.

Will repeated JPEG compression improve the source?

No. Work from an original when possible. Repeated lossy exports can accumulate artifacts without recovering any lost detail.

Sources and further reading

Technical references for the concepts in this guide. Examples with hypothetical values are illustrations, not measured results.

  • GTmetrix: efficiently encode imagesnorth_east
SV

Saipavan V

Saipavan V writes practical guides for CompressByURL on browser-first image optimization, website image audits, and web performance. His articles connect technical explanations with steps you can verify on your own site.

More about the author

On this page

  1. Separate inefficient encoding from oversized pixels
  2. Choose visual acceptance criteria before moving the quality slider
  3. Run a small export experiment from one source
  4. Use lossless paths for images that cannot tolerate artifacts
  5. Deploy the selected bytes and catch stale variants
  6. Measure savings without claiming a matching speed increase
  7. Common questions
  8. Sources and further reading

Try it with your images

Local files stay on your device.

Compress your imagesCompare measured output files while local image bytes stay in your browser.arrow_forwardOptimize a PNGPrepare a PNG candidate and inspect text and transparent edges.arrow_forward

Explore the topics

Web performancechevron_rightWebsite auditschevron_rightDeveloper guideschevron_rightImage optimizationchevron_right

Keep going.

A few guides for your next useful fix.

View all guides arrow_forward
arrow_outward
Image optimization4 min read

Compress PNG screenshots while keeping text sharp

Reduce screenshot weight with lossless optimization, intentional crops, and careful resizing. Avoid blurry labels and damaged transparent edges.

Aug 28, 2026
arrow_outward
Image optimization4 min read

Why your WebP is bigger than the original JPEG

Diagnose WebP conversions that grow in size by checking dimensions, lossy versus lossless settings, source quality, and actual visual acceptance.

Aug 30, 2026
arrow_outward
Web performance4 min read

Fix GTmetrix “Properly size images” without making photos blurry

Find oversized image variants in GTmetrix, calculate a sensible pixel width, and deploy responsive replacements without sacrificing desktop clarity.

Sep 29, 2026
Mascot organizing image cards for optimization

Compress images locally, from a URL, or from a webpage.

Reduce file size, convert formats and prepare web-ready assets in your browser.

Open the free image compressor
CompressByURL

Make images lighter. Keep local files private.

BlogAbout & contactPrivacyTermsCookies