Simple functions for image manipulation

2.2.1 2024-09-27 17:53 UTC

This package is auto-updated.

Last update: 2024-10-27 18:04:01 UTC


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.