muhammetsafak / ImageManipulation

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ImageManipulation

PHP Image Manipulation Class

Latest Stable Version Total Downloads License PHP Version Require

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

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.

About

License:MIT License


Languages

Language:PHP 100.0%