Download the PHP package kwaadpepper/image-resizer without Composer
On this page you can find all versions of the php package kwaadpepper/image-resizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download kwaadpepper/image-resizer
More information about kwaadpepper/image-resizer
Files in kwaadpepper/image-resizer
Package image-resizer
Short Description Resize images on the fly and cache them
License MIT
Homepage https://github.com/kwaadpepper/image-resizer
Informations about the package image-resizer
Enum
Resizes an image on the fly and returns the new link
Installation
Via Composer
Usage
1 - Publish config
2 - Set a config in templates array (config/image-resizer.php)
/**
* resize => will resize the image (boolean)
* fit => Combine cropping and resizing to format image in a smart way (boolean)
* keepRatio => will keep image ratio wile resizing (boolean)
* trim => boolean to trim the image using border color
* inCanvas => to make sure image boundarie is respected
* format => select tha wantd ouput form, yan can just convert images if you want
*/
'templates' => [
'smallWebp' => [
'height' => 500,
'width' => 250,
'inCanvas' => true,
'format' => 'webp',
'trim' => ['transparent', null, 10]
]
]
3 - type in console php artisan storage:link
4 - in your blade template override an image link
5 - Optional You can clean manually outdated cache file using command php artisan image-resizer:clean-cache
or force cleaning the cache using php artisan cache:clean
- Please Note that is automatically scheduled on production every half hour
Change log
Please see the changelog for more information on what has changed recently.
Testing
Contributing
Please see contributing.md for details and a todolist.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- Jérémy Munsch
- All Contributors
License
MIT. Please see the license file for more information.
All versions of image-resizer with dependencies
illuminate/support Version ~11
laravel/framework Version ~11
intervention/image Version ^3.6