Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muhammetsafak/imagemanipulation
https://github.com/muhammetsafak/imagemanipulation
Last synced: 26 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/muhammetsafak/imagemanipulation
- Owner: muhammetsafak
- License: mit
- Created: 2022-04-23T04:02:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-04-23T04:06:28.000Z (over 2 years ago)
- Last Synced: 2024-07-14T17:51:59.492Z (5 months ago)
- Language: PHP
- Size: 84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# ImageManipulation
PHP Image Manipulation Class
[![Latest Stable Version](http://poser.pugx.org/muhammetsafak/image-manipulation/v)](https://packagist.org/packages/muhammetsafak/image-manipulation) [![Total Downloads](http://poser.pugx.org/muhammetsafak/image-manipulation/downloads)](https://packagist.org/packages/muhammetsafak/image-manipulation) [![License](http://poser.pugx.org/muhammetsafak/image-manipulation/license)](https://packagist.org/packages/muhammetsafak/image-manipulation) [![PHP Version Require](http://poser.pugx.org/muhammetsafak/image-manipulation/require/php)](https://packagist.org/packages/muhammetsafak/image-manipulation)
## 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](https://www.php.net/manual/en/book.image.php)## Installation
```
composer require muhammetsafak/image-manipulation
```## Usage
```php
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](http://www.muhammetsafak.com.tr) and distributed under the [MIT License](./LICENSE).