Answer the question
In order to leave comments, you need to log in
How to put another picture instead?
$image = new Imagick('test.png');
$text = 'Test';
$draw = new ImagickDraw();
$draw->setFont('Arial');
$draw->setFontSize(20);
$draw->setFillColor('black');
$draw->setGravity(Imagick::GRAVITY_SOUTHEAST);
$image->annotateImage($draw, 10, 12, 0, $text);
$draw->setFillColor('black');
$image->annotateImage($draw, 11, 11, 0, $text);
$image->setImageFormat('png');
header('Content-type: image/png');
echo $image;
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question