Este artículo actualmente solo está disponible en inglés.

WebPSep 25, 20255 min read

Handling Screenshots: WebP Settings for Text and UI

Screenshots are not normal photos. They contain sharp edges, small text, flat colors, code samples, charts, icons, and interface details that users may need to read. A WebP setting that looks good on a lifestyle image can make a screenshot feel blurry or noisy.

That does not mean screenshots should never become WebP. It means they need a different review standard. The output must remain readable at the size where users encounter it: documentation pages, product tours, help centers, app galleries, and release notes. The common mistake is to recommend one universal WebP quality value for screenshots without checking the actual text, UI density, output evidence, or page context.

Classify the Screenshot#

Start by identifying what the screenshot is supposed to communicate. Common categories include:

  • full application screens
  • cropped UI states
  • code editor screenshots
  • charts or analytics dashboards
  • mobile app screens
  • before-and-after comparisons
  • support documentation steps

The more a screenshot depends on readable text, the more conservative the conversion should be. A decorative app preview can tolerate more compression than a support article where the user must read labels and buttons.

Resize With Reading Size in Mind#

Before compression, decide how large the screenshot will be displayed. Many screenshots are exported at full desktop width and then displayed at 700 or 900 pixels wide in an article. Resizing can help, but reducing too far makes text unreadable before compression starts.

Review the screenshot at the final content width. If labels are already difficult to read after resizing, WebP settings will not fix the problem. Use a larger display size, crop the important area, or provide a zoomable version.

For documentation, a cropped screenshot is often better than a full-screen image because it focuses attention and preserves text size.

Prefer Conservative Quality for Text#

Lossy compression can create ringing, blur, or color noise around letters and thin lines. For screenshots with text, start with higher WebP quality than you would use for photographs, then lower only if readability remains strong.

If the screenshot contains code, terminal output, data tables, or UI labels, inspect it at 100 percent and at the published size. Users should not have to guess what a label says.

Lossless WebP or PNG may still be better for some screenshots. The decision should be based on visual review, not only file size.

When testing with GetWebP CLI, make the quality mode explicit. Omitting --quality uses WebP auto-quality, which is useful for general production conversion but not ideal when you are comparing screenshot thresholds. For a screenshot test, run fixed settings and keep the report:

getwebp ./screenshot-sample \
  -o ./screenshot-review/q88 \
  --quality 88 \
  --json > ./screenshot-review/q88.ndjson

getwebp ./screenshot-sample \
  -o ./screenshot-review/q92 \
  --quality 92 \
  --json > ./screenshot-review/q92.ndjson

Then inspect the fields that matter:

jq -r '
  select(.type == "convert.completed")
  | .data.results[]
  | [.file, .outputPath, .savedRatio, .quality, .qualityMode, .status]
  | @tsv
' ./screenshot-review/q88.ndjson

The numeric report is evidence, not the decision. A small savedRatio can still be acceptable if the screenshot is clearer than an aggressive conversion, and a large saving can still be rejected if labels blur.

Check Flat Color and Borders#

UI screenshots often contain flat backgrounds, thin borders, disabled states, shadows, and subtle contrast. Compression artifacts in these areas can make a polished product interface look dirty.

Inspect:

  • button text
  • input borders
  • table grid lines
  • icons
  • small charts
  • error messages
  • subtle shadows
  • dark mode surfaces

Dark mode screenshots deserve extra attention because low-contrast artifacts can appear in panels and gradients.

Keep PNG for Source and Editing#

Even if the published screenshot is WebP, keep the original PNG or source capture. Screenshots are often updated when UI changes. If the only remaining file is a compressed output, future edits become harder and quality can degrade through repeated re-encoding.

A clean workflow might look like this:

screenshots/
  originals/dashboard-settings.png
  optimized/dashboard-settings.webp

Use the original for future edits and the optimized output for web delivery.

Review in the Documentation Page#

Screenshots often sit inside content blocks with captions, callouts, sidebars, or constrained columns. Review the WebP output in that real layout. A screenshot that looks acceptable in a large viewer may fail when it is scaled down in a help article.

Also check mobile. If the screenshot becomes too small on a phone, consider using a cropped mobile-specific version or breaking one large screenshot into smaller steps.

Record the review in a form that another editor can understand:

Screenshot group: docs setup flow
Displayed width: 860 px desktop, 360 px mobile
Accepted: q92 for cropped UI states
Rejected: q88 for terminal screenshot, command text softened
Fallback: keep PNG for full-screen dashboard capture
Evidence: screenshot-review/q92.ndjson plus page preview

Use Sources, Not Assumptions#

Google's WebP documentation explains that WebP supports both lossy and lossless compression. MDN's image file type guide gives broader context for when PNG, WebP, and other formats fit web delivery. GetWebP's CLI command reference documents --quality, --output, and --json, and the JSON output guide explains qualityMode, savedRatio, status, and outputPath.

Those references support the technical choice, but they do not replace review. Screenshots fail in details: text, borders, icons, and contrast.

A Practical Approval Rule#

Approve a screenshot conversion only when:

  • the important text is readable at published size
  • small UI elements remain sharp enough
  • flat backgrounds do not show distracting noise
  • the source PNG is preserved
  • the CLI report shows the expected fixed quality setting when a threshold was tested
  • the screenshot still works on mobile

If those checks pass, WebP can be a useful delivery format for screenshots. If they do not, keep PNG or revise the screenshot itself. A smaller documentation image is not helpful when the user can no longer read the interface.

Jack avatar

Jack

GetWebP Editor

Jack writes GetWebP guides about local-first image conversion, WebP workflows, browser compatibility, and practical performance checks for teams that publish images on the web.