help with text on image

Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Post Reply
hardticket

help with text on image

Post by hardticket »

Hi All, I'm new to this board and google searches proved fruitless.

I'm looking for some direction or sample PHP code to do the following:


printing text on an image (script type font) but have the text bound to a width and height.

For example, I would like the user to enter text in a text box (I'll limit the characters at that end)
but I want to specify a certain part of the main image on where the text will end up with wrapping.

I'm fairly new to php and imagemagik so some complete code from writing the text on the image to bounding it
in a box would be perfect

merry xmas
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Re: help with text on image

Post by Bonzo »

Take a look here and hopefuly you will find what you are looking for:
http://www.rubblewebs.co.uk/imagemagick/notes/wrap.php

You would need to write your code to a transparent background then composite it onto you image.
Post Reply