Looking to hire Laravel developers? Try LaraJobs

laravel-multisize-image maintained by yaroslawww

Description
Crop multiple sizes image while downloading
Last update
2020/11/07 15:34 (dev-master)
License
Downloads
42

Comments
comments powered by Disqus

Crop multiple sizes image while downloading

Software License Build Status StyleCI Quality Score Code Coverage PHP Version Packagist Version

Installation

You can install the package via composer:

composer require yaroslawww/laravel-multisize-image

Usage

 /** @var SavedImageData $result */
$result = (new AvatarManager($user))->replaceOrSave($request->new_avatar);
if(!empty($result->getSizes())) {
    $user->avatar = $result->getName();
    $user->save();
}

Testing

composer test

Security

If you discover any security related issues, please email yaroslav.georgitsa@gmail.com instead of using the issue tracker.

License

The MIT License (MIT). Please see License File for more information.