g4t/laravel-image-resizing

0.0.1 2021-12-12 13:10 UTC

This package is auto-updated.

Last update: 2024-05-15 19:56:18 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.