newfrontiers / images
Simple image modification library
Installs: 9 832
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >7.0
Requires (Dev)
- phpunit/phpunit: ~6
This package is auto-updated.
Last update: 2024-12-16 17:11:52 UTC
README
Install
Via Composer
$ composer require newfrontiers-images
Usage
Load images from a file or an existing resource. Note: Resources are closed upon destruction of the object.
$image = Image::fromFile($myImageFile); $image = Image::fromResource($myImageResource);
Simple image manipulation functions like brightness and contrast are applied to the loaded image directly. More complex manipulations like rotation and cropping return a new Image instance leaving the original image untouched.
$originalImage = Image::fromFile('original.jpg'); $croppedImage = $originalImage->cropSquare(200); $croppedImage->saveToFile('cropped.jpg');
License
All rights reserved. You are NOT allowed to use this!