Skip to content

Conversation

@danihidayatx
Copy link

This PR adds the Image Optimizer plugin to the Filament plugins directory.

Plugin Details

Context & Why this exists

This package is a maintained fork of joshembling/image-optimizer. The original package currently does not support Filament v4 or v5. As stated by the original author: "There are no plans to extend this plugin's lifetime beyond Filament v3. Please do not plan to use this in production if you are using or upgrading to Filament v4."

Features

  • Filament v5 Ready: The first image optimizer plugin fully tested and compatible with Filament v3, v4, and v5.
  • Zero-Storage Optimization: Compresses and resizes images on-the-fly before they are saved to your final disk.
  • Format Conversion: Easily convert uploads to webp, jpg, or png using a simple chainable method.
  • Auto-Resizing: Shrink images by percentage or set maximum width/height constraints.
  • Cloud Friendly: Improved temporary file handling ensures full compatibility with S3 and other cloud drivers.
  • Spatie Integration: Works seamlessly with both native FileUpload and SpatieMediaLibraryFileUpload.

Documentation

Complete README with usage examples and migration guides available at: https://github.com/danihidayatx/image-optimizer#readme

@danihidayatx danihidayatx requested a review from saade as a code owner January 19, 2026 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant