Download the PHP package baaaaane/image-optimizer without Composer
On this page you can find all versions of the php package baaaaane/image-optimizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package image-optimizer
Image Optimizer
This package can generate different size of optimized images (Thumbnail-Mobile-Desktop). Here's how you can use it:
Installation
You can install the package via github or composer
Tools
This package is required in this library to optimize the image:
Here's how to install via composer:
Instructions
The filenames can be randomized or customized by the user.
UploadFile from Laravel's request. (OPTIONAL)
Set File Path - use it before upload() (OPTIONAL)
Customizable Name (OPTIONAL)
Customizable Size (FORMAT: WIDTH, HEIGHT) (OPTIONAL)
For multiple uploads, use this line of code for re-arrange the array before pass it to imageOptimizer->upload():
Delete Original File - use it before upload() (OPTIONAL)
Parameter for upload should be an array. It should look like this:
Sample Single Upload
Sample Multiple Upload
`
Sample retrieve files after uploading. Return an array upon success.
Example conversions
Here are the example conversions done by this package.
Original:
1920 x 1080 | JPEG | 272KB
Optimized and Converted to Desktop | Mobile | Thumbnail:
Desktop 1920 x 1080 | JPEG | 218KB
Mobile 690 x 960 | JPEG | 50KB
Thumbnail 300x300 | JPEG | 14KB
Credits
- Spatie This package has been inspired by spatie/image-optimizer
License
The MIT License (MIT). Please see License File for more information.
All versions of image-optimizer with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.2
illuminate/container Version ^5.7
symfony/var-dumper Version ^4.1.1
spatie/image-optimizer Version ^1.1
illuminate/container Version ^5.7
symfony/var-dumper Version ^4.1.1
spatie/image-optimizer Version ^1.1
The package baaaaane/image-optimizer contains the following files
Loading the files please wait ....