cjrasmussen / image
Simple functions for image manipulation
2.2.1
2024-09-27 17:53 UTC
Requires
- php: >=7.4.0
- ext-ctype: *
- ext-gd: *
- cjrasmussen/color: ^2.0
- ralouphie/mimey: ^2.1
Requires (Dev)
- roave/security-advisories: dev-latest
README
Simple functions for image manipulation.
Usage
use cjrasmussen\Image\Resize; use cjrasmussen\Image\Text; Resize::fitToImage($dst, $src); Text::write($dst, 'Hello World', 'MyFont.ttf', 32, '880000'. 20, 20);
Installation
Simply add a dependency on cjrasmussen/image to your composer.json file if you use Composer to manage the dependencies of your project:
composer require cjrasmussen/image
Although it's recommended to use Composer, you can actually include the file(s) any way you want.
License
Image is MIT licensed.