| Install | |
|---|---|
composer require agencetwogether/filament-optimize-fileupload |
|
| Latest Version: | 1.0.1 |
| PHP: | ^8.2 |
| License: | MIT |
| Last Updated: | Jan 16, 2026 |
| Links: | GitHub · Packagist |
Save your image in another format with eventually a custom quality compression directly in FileUpload component
You can install the package via composer:
composer require agencetwogether/filament-optimize-fileupload
After installation, just call ->optimize('webp', '50') in one of your FileUpload component in your form to
automatically save your image with a desired format
FileUpload::make('image')
->image()
->optimize('webp')
You can choose any image format and eventually customizing the quality with second parameter.
FileUpload::make('image')
->image()
->optimize(format: 'jpg', quality: '40')
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.