Spronta Images — WordPress Plugin
Automatically serve your WordPress images through the Spronta image CDN. No code changes needed — the plugin rewrites image URLs at render time.
- Automatic URL rewriting — all <img> tags, srcsets, and attachment URLs routed through Spronta CDN
- Format negotiation — auto-serves WebP, AVIF, or JXL based on browser support
- Smart quality — perceptual quality targeting (high/medium/low)
- Blurhash placeholders — smooth loading with decoded blurhash backgrounds
- Zero lock-in — originals stay in wp-content/uploads/, deactivate to instantly revert
- No build step — drop into wp-content/plugins/ and activate
- Download or clone the spronta-images/ folder
- Copy to wp-content/plugins/spronta-images/
- Activate in WordPress admin → Plugins
- Go to Settings → Spronta Images
- Paste your API key and connect
The plugin hooks into WordPress's image pipeline at render time:
| Hook |
What it does |
| wp_get_attachment_url |
Rewrites attachment URLs → CDN |
| wp_calculate_image_srcset |
Rewrites srcset entries with width params, strips WP size suffixes |
| the_content |
Rewrites image URLs in post/page HTML |
WordPress generates -1024x768.jpg variants. Spronta strips these suffixes and requests the original at the right size:
photo-1024x768.jpg → photo.jpg?w=1024&q=medium
| Setting |
Default |
Description |
| Quality |
medium |
high / medium / low |
| Format |
auto |
auto / webp / avif |
| Lazy loading |
on |
Blurhash placeholder toggle |
| Auto rewrite |
on |
Content URL rewriting toggle |
| CDN URL |
— |
Custom CDN URL override |
MIT