smartformer/php-imagetextoverlay

Library to overlay a text centered over an image

1.0.4 2021-01-17 23:19 UTC

This package is auto-updated.

Last update: 2024-12-18 07:46:55 UTC


README

This is a Helper Class, which will put an overlay Text on an image and generate a new image from it.

Usage

$adder = new Smartformer\ImageTextOverlay\Adder('fonts/Roboto/Roboto-Regular.ttf');
$adder->addTextToJpeg('Your Text', 'input.jpeg', 'output.jpg');
$adder->addTextToPng('Your Text', 'input.png', 'output.png');