Stars: 151
Forks: 11
Pull Requests: 22
Issues: 17
Watchers: 13
Last Updated: 2022-10-26 18:01:17
A PHP library for easy image handling. 🖼
License: MIT License
Languages: PHP, Makefile
A PHP library for easy image handling. 🖼
GImage is a simple and small library based on PHP Image Processing and GD for processing images easily.
Presentation card built with GImage - View code example
Canvas
.GImage requires PHP 7.4
or a recent PHP version with the latest GD Extension.
composer require joseluisq/gimage
Load an external PNG image and save it as JPG:
<?php
use GImage\Image;
// PNG image (600x199)
$url = 'https://i.imgur.com/G5MR088.png';
$arch = new Image();
$arch
// Load from URL
->load($url)
// Scale to 50% (300x99)
->scale(0.5)
// Change the format to JPG
->toJPG()
// Saving in local path
->save('arch.jpg');
See GImage Website for detailed usage instructions and more advanced examples.
Check out the CHANGELOG.md file.
See code examples directory.
Via Composer
composer install
composer run-script test
Via Docker (multi PHP versions test)
make docker-tests
Feel free to send some Pull request or file an issue.
This work is primarily distributed under the terms of the MIT license.
©2015-present Jose Quintana