g4t / laravel-image-resizing
:package_description
0.0.1
2021-12-12 13:10 UTC
Requires
- illuminate/support: ~7|~8
Requires (Dev)
- orchestra/testbench: ~5|~6
- phpunit/phpunit: ~9.0
This package is auto-updated.
Last update: 2025-02-19 16:41:11 UTC
README
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.