hosmelq/laravel-imgproxy
Laravel integration for imgproxy that generates signed, on-the-fly image processing URLs. Configure sources, keys, and presets, then build resizing and cropping links directly from your models, Blade views, and storage disks with a clean, fluent API.
infoBuilder() and imgproxyInfo() disk macro make the buy decision more nuanced: teams already paying for imgproxy Pro get more value, while teams on open-source imgproxy should treat these as unavailable.hosmelq/imgproxy ^2.0, changes format() behavior, throws on previously tolerated invalid inputs, and requires rebuilding URLs for encrypted sources. This creates a scoped migration workstream that should be scheduled and tested rather than absorbed silently.Adopt or upgrade when:
format() usage, replace it with build(extension: 'webp'), verify Storage macro calls pass extension/encoding correctly, and regenerate any encrypted URLs.hosmelq/imgproxy 2.0 upgrade does not change expected outputs in your environment.Look elsewhere or defer when:
format() extension behavior or the previous SDK version.For executives: v3.0.0 is a capability and hardening release for our Laravel image pipeline. It unlocks image metadata features for teams with imgproxy Pro, adds configurable security and compatibility controls, and tightens validation so misconfigurations fail loudly instead of silently. The trade-off is a planned breaking upgrade: we need engineering time to update SDK dependencies, adjust format() usage, and rebuild encrypted image URLs. This is a scoped migration, not a drop-in patch.
For engineering: Treat this as a major-version migration. Upgrade hosmelq/imgproxy to ^2.0, audit all format() calls and replace with build(extension: 'webp'), confirm Storage macros pass extension/encoding, validate config for separators, presets-only mode, trusted signatures, and aliases, and add tests for invalid encoding/IV/key cases now throwing. Regenerate encrypted source URLs once and invalidate caches/CDN entries. Sequence the work behind a feature flag or staging validation if encrypted assets are customer-facing.
How can I help you explore Laravel packages today?