Download the PHP package gnahotelsolutions/image-cacher without Composer
On this page you can find all versions of the php package gnahotelsolutions/image-cacher. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download gnahotelsolutions/image-cacher
More information about gnahotelsolutions/image-cacher
Files in gnahotelsolutions/image-cacher
Package image-cacher
Short Description Creates a resized or cropped version of the image in the cache directory
License MIT
Homepage https://github.com/gnahotelsolutions/image-cacher
Informations about the package image-cacher
Create smaller versions of the same image
With this package you can create smaller versions of the same image to optimize user's transfer data. What's the point of downloading a 3000x3000 image on a 200x200 thumbnail? This package is very helpful when dealing with responsive images
Installation
You can install the package via composer:
Usage
Generating a thumbnail
Combining with srcset attribute
Using with Laravel
The package comes with a Facade you can use on your Laravel projects. Use the configuration file to tell where the cache path and the images root path are.
First of all, publish the package configuration file:
Adapt the config/image-cacher.php
file variables to your needs. Default ones works well with a standard Laravel app.
Testing
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email [email protected] instead of using the issue tracker.
Credits
- David Llop
- All Contributors
License
The MIT License (MIT). Please see License File for more information.