hoangdung / imagescale
v1.1.2
2019-11-06 08:45 UTC
Requires
- php: >=7.0
- intervention/image: ^2.4
This package is auto-updated.
Last update: 2024-05-19 21:37:31 UTC
README
A package that helps you resize and optimize an image.
Installation
composer require hoangdung/imagescale --dev
Copy the package config to your local config with the publish command:
php artisan vendor:publish --provider="Hoangdung\Imagescale\ImageScaleProvider"
Usage
// parameter image file or url $image = new ImageScale($imageFile) $img->resizeWidthHeight(600, 600); // large, medium, small $img->resizeOption('small'); $image->save($path. $fileName));