danihidayatx/image-optimizer
A fork of joshembling/image-optimizer for Filament v3, v4 and v5 and Laravel 10 through 13. It adds optimize and resize methods to FileUpload and SpatieMediaLibraryFileUpload, compressing and converting images before they reach your database or S3 bucket, saving disk space.
Adopt if:
Look elsewhere if:
spatie/image-optimizer or cloud-based tools like Cloudinary)."This package lets us cut storage costs by up to 70% for image uploads in Filament by optimizing assets before they hit our database or S3 bucket. For a [X]-user app with [Y] monthly uploads, that’s a potential savings of [Z] per month—without sacrificing quality or performance. It’s a low-risk, high-reward tweak that aligns with our [cost-efficiency/performance] goals. Implementation is minimal (1–2 hours), and it plays nicely with our existing Laravel/Filament stack."
Key Ask:
*"This is a drop-in replacement for Filament’s FileUpload that pre-optimizes images using Laravel’s built-in spatie/image-optimizer (same library as the original package). Here’s why it’s a no-brainer:
optimize() and optimizeWithDynamicValues()).Trade-offs:
Proposal:
Key Ask:
FileUpload with the optimized version in 1–2 panels.How can I help you explore Laravel packages today?