laravel-image-resizing maintained by g4t
Description
:package_description
Author
Last update
2021/12/13 08:11
(dev-main)
License
Downloads
6
Tags
Laravel Image Resizing
You can change the image size while uploading
This is where your description should go. Take a look at contributing.md to see a to do list.
Installation
Via Composer
$ composer require g4t/laravel-image-resizing
now publish ImageResizing.php using this command:
$ php artisan vendor:publish --provider=g4t\ImageResizing\ImageResizingServiceProvider
Usage
in folder `config` You will find `ImageResizing.php`
you will find some examples there
you can define:
Image `height`
Image `width`
`path` to save images
`save_orginal` to save orginal image or not
`full_url` to return full url or not
`base_url` to use with `full_url`
Use in Controller
use g4t\ImageResizing\Upload;
.
.
.
return Upload::file($request->image, 'small');
small in our example can find it in ImageResizing.php
License
MIT. Please see the license file for more information.