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).
Requires
- php: >=7.0
- ext-imagick: *
Requires (Dev)
- ext-imagick: *
- kint-php/kint: ~2.2
- phpunit/phpunit: 8.*
- squizlabs/php_codesniffer: ^2.3
README
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.