spatie/statamic-responsive-images
Spatie's Responsive Images addon for Statamic CMS generates responsive image versions automatically, with a fieldtype for art direction and Glide presets driven by configurable breakpoints.
srcset/sizes, modern formats (WebP/AVIF), and LQIP placeholders the default for Statamic-managed imagery. That directly supports Core Web Vitals goals (LCP, CLS) without asking editors to understand image formats — a strong lever if page-speed targets are tied to SEO, conversion, or paid-acquisition quality scores.lg:src, lg:ratio, breakpoint-scoped quality) instead of shipping one crop to every viewport. This is a product decision about editorial control vs. design consistency: more editor agency, more brand-governance process needed.responsive field and self-augmenting fieldtype data, so the decision to go headless or build a separate front end doesn't force a parallel image pipeline. Reduces rework if the front-end strategy changes.image_manipulation.cache: false so only browser-requested variants are generated. That's a real tradeoff decision: lower storage and server cost, but slower first-load conversions and a warm-up dependency on Glide's internal cache. The responsive:regenerate command and queue support exist for the cached path, so you can choose per environment.excluded_containers and queue configuration let you roll out to high-traffic image surfaces first rather than reprocessing every asset container at once.Adopt when:
Look elsewhere when:
laravel-medialibrary) that this would duplicate.For executives: A low-cost, MIT-licensed addon that makes our Statamic site serve correctly sized, modern-format images automatically. It targets page-speed and mobile experience — the metrics tied to search ranking and conversion — without a new vendor contract or a custom build. Risk is contained: it's configuration and templating, reversible, and from a well-known open-source vendor. Main caveats are a small public user base and a deliberate tradeoff between storage costs and first-load image latency.
For engineering: Drop-in Composer package for Statamic 4+. Provides a responsive fieldtype, a responsive Antlers tag, breakpoint-scoped parameters (ratio, src, quality, glide), WebP/AVIF toggles, LQIP placeholders, configurable Tailwind-style breakpoints, GraphQL fields, and a responsive:regenerate command with queue support. It composes with Glide rather than replacing it, so existing presets and glide:* parameters still apply. Plan for cache configuration (image_manipulation.cache), queue selection, and container exclusions; publishable views cover markup customization. Known-issue surface from the changelog is small and actively patched — alt attributes, numeric width/height, AVIF attribute leakage, placeholder failure handling, and absolute-URL configuration.
How can I help you explore Laravel packages today?