Download the PHP package fynduck/files-upload without Composer
On this page you can find all versions of the php package fynduck/files-upload. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fynduck/files-upload
More information about fynduck/files-upload
Files in fynduck/files-upload
Package files-upload
Short Description Save & resize & crop images
License MIT
Homepage https://github.com/fynduck/files-upload
Informations about the package files-upload
FilesUpload
| Laravel | files-upload | Php version |
|---|---|---|
< 5.7 | ^1.8 | >=5.6 |
||
>= 5.7 | ^2.1 | >=5.6 |
||
| 5.7 - 11.0 | ^3.1 | >=7.1 |
|
>= 9.0 | ^4.0 | >=8.1 |
Usage
Upload file or image
Background (queued) resizing
When you request many sizes, generating them inline makes the client wait for every
resize + optimize to finish. Call ->queue() to store the original immediately and
generate the size variants on your queue workers instead:
By default each size is dispatched as its own job inside a batch, so sizes are rendered
in parallel across workers. When the batch finishes, a Fynduck\FilesUpload\Events\ImageSizesGenerated
event is fired (disk, folder, name, size keys, source path) so you can react (e.g. mark a
record as ready). Make sure a worker is running: php artisan queue:work.
Publish the config to change defaults (default disk, quality, and whether background mode is always on):
Make new sizes from image
Optimize exist image
resize: Resize the image by the maximum width or height
crop: Cut out by size part of the current image with given width and height
For laravel < 5.7 use version 1.8
Previous stable versions
Installation
You can install the package via composer:
Contributing
Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see License File for more information.
All versions of files-upload with dependencies
illuminate/support Version ^9.0|^10.0|^11.0|^12.0|^13.0
spatie/laravel-image-optimizer Version ^1.8
intervention/image-laravel Version ^1.5
intervention/image-driver-vips Version ^1.0
ext-fileinfo Version *