PHP code example of christianberkman / imagick-text-box
1. Go to this page and download the library: Download christianberkman/imagick-text-box library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
christianberkman / imagick-text-box example snippets
use \Imagick;
use ImagickTextBox\ImagickTextBox;
$image = new Imagick()->readImage('your-image.php');
$textBox = new ImagickTextBox($image);
$textBox->string = 'Hello World';
$textBox->draw(Imagick::GRAVITY_NORTHWEST);