Blur is often blamed on compression when the real problem is delivery: an image is too small for its rendered size, stretched by CSS, or repeatedly re-encoded.
Good website images start with layout dimensions and device density, then choose format and quality. Compression is the final trade-off, not the first decision.
Direct answer
The safest sequence is to resize to the real display requirement, choose a format suited to the content, and lower quality gradually while comparing the final rendered result.
Practical reference
Step-by-step workflow
- 1Measure the largest CSS display width and device-density requirement.
- 2Generate an appropriately sized source or responsive variants.
- 3Compare format and quality using text, hair, gradients and edges.
- 4Verify loading, layout stability and appearance on a real page.
Common mistakes
- Compressing a 5000 px image that renders at 800 px.
- Judging only by file size rather than visible artifacts.
- Using one oversized image for every responsive breakpoint.
- Re-encoding an already damaged source repeatedly.
Measure the slot, not the source
A hero that renders at 1200 CSS pixels may need a denser candidate for high-density screens, but it rarely needs the full 6000-pixel camera file for every visitor.
Responsive sources let the browser choose a suitable width. Explicit dimensions also reserve layout space and reduce unexpected movement during loading.
Artifacts have recognizable shapes
Lossy compression can soften texture, create blocks or add fringes around text and sharp color transitions. A screenshot and a portrait therefore tolerate different settings.
Judge at the actual rendered size and inspect a 100% crop of the most fragile area. A full-screen preview can hide defects that become obvious around small typography.
Performance is more than bytes
A smaller transfer can improve load time, especially when the image becomes the page's largest visible element. Decode cost, lazy loading and responsive selection also affect the result.
Do not lazy-load the primary above-the-fold image blindly. Optimize the file, prioritize the critical visual and defer images that begin outside the viewport.
The blurry hero that was not over-compressed
A homepage hero looked soft on a high-density laptop even though the JPG quality was high.
What a better workflow looks like: The team supplied correctly sized responsive candidates and let the browser select a denser source. The quality slider had not been the root cause.
Before you publish: a six-point checklist
- Keep the untouched source file and work on a copy.
- Test one representative file before processing a batch.
- Inspect the downloaded result at its real display size and at 100%.
- Confirm dimensions, format, transparency and byte size in file properties.
- Open the result in the final website, form, app or device.
- Record the setting that produced the accepted result so it can be repeated.
Turn the explanation into a quick test
Inspect the rendered dimensions in the browser, then create candidates around real breakpoints. Compare the page itself rather than isolated downloads.
Open the related tool
Reduce transfer size by matching display dimensions, choosing the right format and checking high-detail regions at actual rendered size.
Open the related tool →Frequently asked questions
What quality value should I use?
There is no universal value; inspect the actual content and destination.
Why does text look blurry?
Lossy photo compression can damage sharp edges; use a suitable format.
Should I upscale a small source?
Upscaling does not recreate genuine detail.
Sources and further reading
This article synthesizes the references below with HarnessTrail's browser-local workflow and original examples.