Search by

Simple tooling for image manipulation, wrapping native GD functions

Package info

github.com/cjrasmussen/Image

Homepage

pkg:composer/cjrasmussen/image

Statistics

Installs: 191

Dependents: 2

Suggesters: 0

Stars: 0

Open Issues: 0

3.0.0 2026-10-26 18:18 UTC

This package is auto-updated.

Last update: 2026-10-26 18:21:40 UTC


README

Simple tooling for image manipulation, wrapping native GD functions.

Usage

use cjrasmussen\Image\Image;

$img = new Image(1000, 500);
$img->saveAlpha(true);

$img->writeText('MyFont.ttf', 32, '880000', 20, 20)

$img->resize(500, 250);

$img->saveFile('/path/to/file.png', 'image/png');

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.