https://github.com/utopia-php/image
Lite & fast micro PHP library for creating common image manipulations that is **easy to use**.
https://github.com/utopia-php/image
hacktoberfest
Last synced: 4 months ago
JSON representation
Lite & fast micro PHP library for creating common image manipulations that is **easy to use**.
- Host: GitHub
- URL: https://github.com/utopia-php/image
- Owner: utopia-php
- License: mit
- Created: 2021-02-12T14:43:40.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2025-07-26T16:58:09.000Z (7 months ago)
- Last Synced: 2025-08-30T14:36:19.787Z (6 months ago)
- Topics: hacktoberfest
- Language: PHP
- Homepage:
- Size: 21.4 MB
- Stars: 12
- Watchers: 6
- Forks: 11
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Utopia Image
[](https://travis-ci.com/utopia-php/image)

[](https://appwrite.io/discord)
Utopia Image library isLite & fast micro PHP library for creating common image manipulations that is **easy to use**. This library is maintained by the [Appwrite team](https://appwrite.io).
## Getting Started
Install using composer:
```bash
composer require utopia-php/image
```
```php
crop(100, 100, Image::GRAVITY_NORTHWEST);
$image->save($target, 'jpg', 100);
$image = new Image(\file_get_contents('image.jpg'));
$target = 'image_border.jpg';
$image->setBorder(2, "#ff0000"); //add border 2 px, red
$image->setRotation(45); //rotate 45 degree
$image->save($target, 'jpg', 100);
$image = new Image(\file_get_contents('image.jpg'));
$target = 'image_border.jpg';
$image->setOpacity(0.2); //set opacity
$image->save($target, 'png', 100);
```
## System Requirements
Utopia Image requires PHP 8.0 or later. We recommend using the latest PHP version whenever possible.
## Copyright and license
The MIT License (MIT) [http://www.opensource.org/licenses/mit-license.php](http://www.opensource.org/licenses/mit-license.php)