<?php
bool public Imagick::annotateImage(
ImagickDraw $draw_settings,
float $x,
float $y,
float $angle,
string $text
);
?>
<?php
$image = new Imagick();
$str1img = 'img/results/571.jpg';
$image = new Imagick();
$draw = new ImagickDraw();
$pixel = new ImagickPixel( 'yellow' );
$image->newImage(400, 75, $pixel);
$draw->setFillColor('blue');
$draw->setFont('DancingScript-Regular.ttf');
$draw->setFontSize( 30 );
$image->annotateImage($draw, 65, 45, 0, 'Zerof is my nickname');
$image->setImageFormat('jpg');
$Data = $image->getImageBlob();
$img = imagecreatefromstring($Data);
imagebmp($img, $str1img);
echo basename($str1img); ?>
<br><br>
<img src="<?php echo $str1img; ?>"
alt="<?php echo $str1img; ?>"
title="<?php echo $str1img; ?>">