stereoflo / image-resize
Installs: 1 532
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 0
Type:project
This package is auto-updated.
Last update: 2025-03-19 01:23:20 UTC
README
English version is contained below.
Image Resizer
Простой ресайзер изображенией. Позволяет изменять изображения JPG, GIF, PNG.
Установка
composer require stereoflo/image-resize
Использование
$image = new \ImageResize\Image('pathToYouSourceImage');
или
$image = \ImageResize\Image::create('pathToYouSourceImage');
Изменить размер и отправить изображение в браузер:
$image->resize(400, 400)->send();
Изменить размер и сохраниеть в файловой системе:
$image->resize(400, 400)->save('pathToNewFile');
English version
Simple image resizer. It can work with such file types: JPG, GIF, PNG. It ready for use with Laravel 5.X
How to install
composer require stereoflo/image-resize
How to use
$image = new \ImageResize\Image('pathToYouSourceImage');
or you can make a static call
$image = \ImageResize\Image::create('pathToYouSourceImage');
Change the size and send to a browser
$image->resize(400, 400)->send();
Change the size and save in a file system:
$image->resize(400, 400)->save('pathToNewFile');