muhammetsafak / image-manipulation
PHP Image Manipulation Class
0.3
2022-04-23 04:05 UTC
Requires
- php: >=7.4
- ext-gd: *
README
PHP Image Manipulation Class
Some Features
- Resize proportionally or disproportionately.
- Crop certain part of the image.
- Rotate or flip.
- Write text on the picture.
- Watermark.
- Apply filters to images.
Requirements
- PHP 7.4 and above
- PHP GD Extension
Installation
composer require muhammetsafak/image-manipulation
Usage
require_once "vendor/autoload.php"; $image = new \ImageManipulation\Image(); $image->setImage(__DIR__ . '/image.jpg'); $image->resize(300, 300); // ... other operations $image->save(__DIR__ . '/min_image.jpg'); $image->clean();
Licence
This library is written by Muhammet ŞAFAK and distributed under the MIT License.