Media & Images

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.

GitHub stars
4
Total installs
6
Latest version
v0.0.1
Last commit
4 years ago
Page views
18
Install via Composer
composer require g4t/laravel-image-resizing

Health score

100/ 100 Excellent
  • Downloads — passed
  • Stars — passed
  • Versioned — passed
  • Docs — passed
Last commit 4 years ago

README badges

Latest Version badge
Downloads badge
License badge

Recent releases

  • 0.0.1 0.0.1 4 years ago

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.