muhammetsafak/image-manipulation

PHP Image Manipulation Class

0.3 2022-04-23 04:05 UTC

This package is auto-updated.

Last update: 2024-08-24 11:28:02 UTC


README

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.