Answer the question
In order to leave comments, you need to log in
How to calculate text length in Imagick(fluid, responsive)?
I put text:
$draw = new ImagickDraw();
$bg = new Imagick($fileName);
$draw->setTextAlignment(Imagick::ALIGN_CENTER);
$draw->setFont($fontName);
$draw->setFontSize($fontSize);
$draw->setFillColor($fontColor);
$bg->annotateImage($draw, $x, $y, $angle, $text);
$bg->setImageFormat("png");
$bg->writeImage($outfileName)
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