Configure quality, format, lazy loading, and more.

Settings

Go to Settings → Spronta Images in your WordPress admin.

Quality

Controls the perceptual compression level for all images.

ModeDescription
HighBest quality, larger files. Use for photography sites.
MediumRecommended. Visually identical, 40-70% smaller.
LowAggressive compression. Good for thumbnails and previews.

Format

ModeDescription
AutoBest format for each browser (recommended)
WebPAlways serve WebP
AVIFAlways serve AVIF (smaller but slower to encode)

Auto-rewrite images

When enabled, the plugin automatically rewrites all image URLs in your post content. Disable this if you only want attachment URLs rewritten (not inline images in posts).

Lazy loading + blur placeholder

When enabled, the plugin:

  1. Adds a data-spronta-blurhash attribute to images that have a blurhash
  2. Injects a tiny inline script (~1.2KB) that decodes the blurhash and shows it as a background while the image loads
  3. Removes the placeholder background once the image loads

The script is inlined in the footer — no external requests, no render blocking.

All settings

SettingOption nameDefaultValues
Qualityspronta_qualitymediumhigh, medium, low
Formatspronta_formatautoauto, webp, avif
Auto-rewritespronta_auto_rewritetruetrue, false
Lazy loadingspronta_lazy_loadingtruetrue, false
CDN URLspronta_cdn_urlCustom CDN URL override

All settings are stored as WordPress options and can be managed via wp_options or the WP CLI:

wp option get spronta_quality
wp option update spronta_quality high