pai-cthulhu/feuerimageeditor

Feuer Image Editor is a PHP image handling and manipulation library, made to fill the gaps between Imagick and GD, with focus on greater text handling (like text boxes, which is absent on similar libraries).

v0.6.0 2024-02-08 15:08 UTC

This package is auto-updated.

Last update: 2025-02-08 17:17:52 UTC


README

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Feuer Image Editor is a PHP image handling and manipulation library, made to fill the gaps between Imagick and GD, with focus on greater text handling (like text boxes, which is absent on similar libraries)

Install

Via Composer

$ composer require pai-cthulhu/feuerimageeditor

Usage

Simple thumbnail example

$img = Image::open('/path/to/file.jpg');
$img->thumb('/path/to/thumb.jpg');

Textbox

$img = Image::open('/path/to/file.jpg');

$tb = new Textbox();
$tb->setPos(0, 120)
    ->setSize(400, 150)
    ->setBGColor('#f28d1a')
    ->setFont('/path/to/font.ttf', 32)
    ->setColor('#ffffff')
    ->setText('Hello World!')
    ->setAlignment(Align::CENTER, Align::MIDDLE);
$img->addLayer($tb);

$img->save('/path/to/save/file.jpg');

Change log

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING and CODE_OF_CONDUCT for details.

Security

If you discover any security related issues, please email william.jvenancio@gmail.com instead of using the issue tracker.

Credits

License

The MIT License (MIT). Please see License File for more information.