infernalmedia/responsive-image-craft
Responsive Image Craft generates responsive image sets, srcset attributes and picture markup for Laravel apps, with on-the-fly resizing, caching and Blade helpers so every visitor gets a sharp, correctly sized image on any device or screen density, with no manual resizing required.
sizes attribute support alongside existing responsive image generation. This closes the most common gap teams hit when shipping srcset — without sizes, browsers assume full-viewport width and download oversized assets. That makes "responsive images done properly" a shippable feature rather than a partial one.sizes hints reduce bytes downloaded on mobile and directly support LCP and page-weight targets. This is a concrete, low-effort lever to cite in a performance OKR rather than a speculative optimization.Consider it when:
srcset/sizes emitted consistently rather than hand-written per view.sizes support pays off.Look elsewhere when:
<picture>, or per-image focal-point cropping — verify these exist before committing; the release notes only confirm sizes.Adoption gate: pin the exact version, wrap the package behind your own image-rendering abstraction so a swap is cheap, and confirm the maintainer's release cadence before it lands in a customer-facing surface.
To executives: This is a small, focused library that makes our images load correctly on phones and desktops — serving smaller files where the layout is narrow instead of forcing one large download. The latest release adds the piece that makes that sizing actually accurate. Expected impact is lower page weight and better mobile load times, which is what our performance metrics track. Cost is low; the main caveat is that it's an early-stage (0.0.x) open-source dependency, so we'd pin the version and keep it behind our own interface so we're never locked in.
To engineering: The package generates responsive image derivatives in Laravel and emits srcset/sizes markup from Blade. v0.0.10 adds sizes support, which fixes the default full-width assumption and lets us express real layout constraints per component. It's pre-1.0 with a single primary maintainer — adopt with a pinned version, an internal wrapper around the rendering API, and a documented fallback (CDN transforms) if maintenance stalls. Confirm coverage for format negotiation and <picture> art direction before we scope it into a milestone.
How can I help you explore Laravel packages today?