OptiWave | Doc
OptiWave · Media
Back to Website
Home / Media
Media & Images

Media Optimization

Convert images to WebP/AVIF, self-host Gravatars, replace YouTube embeds with static placeholders, and prioritize rendered LCP images.

OptiWave Media tab showing WebP, AVIF, Gravatar, and YouTube placeholder controls
The Media tab controls for image formats and basic media optimizations

Modern Image Formats (WebP & AVIF)

OptiWave automatically converts uploaded JPEG and PNG files into WebP or AVIF image formats. Visitors receive ultra-compressed modern formats while your original files remain safe on disk.

FormatCompression SavingsCompatibility
WebP 25% – 35% smaller than JPEG Supported by 96%+ of modern browsers
AVIF 50% – 60% smaller than JPEG Next-generation format supported by Chrome, Firefox, Edge, Safari 16+

Self-Host Gravatars

Standard WordPress comment sections make HTTP requests to secure.gravatar.com for every commenter profile picture. OptiWave's Self-Host Gravatars feature downloads profile images to your local server, converts them to WebP/AVIF, and rewrites <img> and <link rel="preload"> tags. Eliminates third-party DNS lookups and ensures 100% GDPR compliance.

Self-Host YouTube Placeholders

Embedding a single YouTube iframe adds up to 800KB of JavaScript before your visitor even clicks play. OptiWave replaces heavy YouTube embeds with a lightweight 15KB preview thumbnail + play button. The actual iframe is loaded only when the user clicks the play icon.

Add Missing Dimensions (AVIF & SVG)

Prevents Cumulative Layout Shifts (CLS) by auto-detecting width and height attributes for HTML image tags. Includes binary header parsing for AVIF images and viewBox extraction for SVG files.

Cloud-Driven LCP Image Priority

OptiWave measures actual rendered viewport area on real device screens (rather than disk file dimensions). It automatically assigns fetchpriority="high" and injects responsive imagesrcset preloads for true LCP hero images.