Proximage is a handy package for proxying images through the images.weserv.nl (free image cache & resize service) with which you can greatly increase the performance of the site.
To learn all about it, head over to the documentation.
You can install this package via composer using this command:
composer require coderello/laravel-proximage
The package will automatically register itself.
Examples of use
Caching and resizing:
proximage($imageUrl) ->width(300) ->get();
Caching and cropping:
proximage($imageUrl) ->crop(Parameter\CropAlignment::CENTER) ->transformation(Parameter\Transformation::SQUARE) ->get();
You'll find the documentation on https://docs.coderello.com/laravel-proximage.
Find yourself stuck using the package? Found a bug? Do you have general questions or suggestions for improving the media library? Feel free to create an issue on GitHub, we'll try to address it as soon as possible.
You can run the tests with:
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
The MIT License (MIT). Please see License File for more information.