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)
Via Composer
$ composer require pai-cthulhu/feuerimageeditor
$img = Image::open('/path/to/file.jpg');
$img->thumb('/path/to/thumb.jpg');
$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');
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING and CODE_OF_CONDUCT for details.
If you discover any security related issues, please email william.jvenancio@gmail.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.