Laravel Image Resizing

v0.0.1
g4t/laravel-image-resizing

Fluent image processing and resizing for Laravel. Resize, crop, watermark, and convert images on-the-fly with a clean chainable API.

4 stars 6 installs Media & Images
Install via Composer
$ composer require g4t/laravel-image-resizing
Health Score
Excellent
✓ Downloads ✓ Stars ✓ Versioned ✓ Docs
Last commit: 4 years ago
Badges
Latest Version
Downloads
License
Recent Releases
0.0.1 0.0.1 4 years ago View →
Ask AI about this package
Powered by DeepWiki. Ask anything about the code, usage, or design.

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.