Tervix
en

Appearance

Local profile

No name

Only in this browser

Manage profile
Open navigation menu
Images and web

How to compress images without ruining visible quality

Choose the right dimensions, format and quality level for photos, screenshots and graphics while preserving a clean result.

By the Tervix Editorial Team10 min read

Tervix · practical guide

Resize first, choose the format second, and adjust quality last. Comparing only the quality slider while keeping unnecessary dimensions usually wastes the largest opportunity.

Good image compression is not about forcing every file to the smallest possible size. It is about removing bytes that do not improve the image at the size and context where people will actually see it. The right result depends on whether the source is a photo, screenshot, logo, illustration or document scan.

1. What “without losing quality” really means

Lossless compression preserves the encoded image data, while lossy compression removes information to create a smaller file. That technical distinction is useful, but the practical question is whether the change is visible in the final use. A photo can often tolerate modest lossy compression; small text and sharp interface lines reveal artifacts much sooner.

Keep the original file as your master. Create a separate optimized copy for delivery, then inspect that copy at the dimensions where it will appear. Do not judge a website thumbnail at 400% zoom or accept a blurry screenshot merely because its file is small.

2. Fix unnecessary dimensions before changing quality

Pixel dimensions frequently matter more than a small quality adjustment. An image exported at 4000 pixels wide is excessive if its largest display size is 1200 pixels. Resizing reduces the number of pixels that must be stored and decoded, usually producing a large saving without changing what a visitor sees.

Decide the maximum display width, account for high-density screens when necessary, and export a sensible source. For responsive websites, generate more than one width and let the browser select an appropriate candidate instead of sending the largest image to every device.

Practical export plan

  • Displayed width: about 800 px
  • Useful exports: 800 px and 1600 px
  • Avoid: serving the untouched 5000 px camera original

3. Match the format to the content

Photographs usually work well as JPEG, lossy WebP or AVIF. Screenshots containing text often need PNG or lossless WebP to keep edges clean. Logos, icons and geometric diagrams are usually better as SVG when a trustworthy vector source exists. Transparency rules out ordinary JPEG.

Modern WebP and AVIF commonly compress more efficiently than older formats, but compatibility and workflow still matter. A reliable web pattern is to offer AVIF or WebP through a picture element and retain JPEG or PNG as a fallback. For email, office documents or third-party uploads, verify which formats the destination accepts before converting.

4. Find the lowest acceptable quality setting

There is no universal quality number because encoders use different scales and every image has different detail. Start from a high-quality output and lower the setting in small steps. Compare hair, foliage, gradients, text, shadows and high-contrast edges. Stop when the saving becomes small or artifacts become noticeable.

Compare at least three candidates side by side and record both dimensions and bytes. A tiny visual improvement is rarely worth doubling the file size, while a dramatic reduction that damages a product image, chart or portfolio piece is a poor trade.

5. Verify the result in its real destination

Open the optimized file, confirm its orientation and transparency, and test it in the page, message or document where it will be used. Check a phone-sized viewport as well as a larger screen. If the platform recompresses uploads, inspect the published version rather than assuming your local export will be preserved.

For websites, dimensions, responsive sources, lazy loading and meaningful alternative text are separate decisions from compression. A small file can still produce a poor experience if it shifts the layout, is downloaded unnecessarily or communicates important text only through pixels.

Final checklist

  • Keep an untouched original.
  • Resize to realistic display dimensions.
  • Choose a format suited to photos, text, transparency or vectors.
  • Compare multiple quality settings.
  • Inspect edges, gradients and text at normal size.
  • Test the final upload or page on mobile and desktop.

Open the Tervix image compressor

Compress several images locally and compare their output sizes without uploading them to Tervix.

Open tool

Sources and review

Reviewed July 29, 2026 against current MDN and web.dev guidance. Exact compression results depend on the encoder, source image and intended display.

Responsible application

Example, uses and limits of this guide

Applied example

Scenario
A 4000×3000 JPEG is displayed at 1200×900.
Result
Resize a delivery copy to 1200×900, export it and compare detail at normal display size.
How to interpret it
Removing unused dimensions usually saves more than repeatedly lowering quality; preserve the original separately.

Use cases

  • Prepare article photos.
  • Optimize text-heavy screenshots.
  • Create modern-format variants.

Limitations

  • !Repeated lossy exports add artifacts.
  • !Metadata and color profiles can change.
  • !Support and transparency needs differ by format.