Simple image modification library

1.0.3 2019-04-23 14:54 UTC

This package is auto-updated.

Last update: 2024-12-16 17:11:52 UTC


README

Latest Version on Packagist

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!