Page 1 of 1

IMagick PHP version of Label - Simple Text Label

Posted: 2016-03-03T06:23:50-07:00
by davidb2002
I want to create a simple image which only contains text. Similar to this:

http://www.imagemagick.org/Usage/text/#label

However, I'd like to keep it within php's Imagick. I know the font size, and I want the canvas size to fit to the font size, like it does in the xample. Unfortunalty, I don't see a way to do this with Imagick in PHP. can someone assist?

Thanks!

Re: IMagick PHP version of Label - Simple Text Label

Posted: 2016-03-03T10:12:05-07:00
by fmw42
I am not an Imagick expert, but see labelImage() at http://us3.php.net/manual/en/book.imagick.php, as opposed to annotateImage().