Page 1 of 1

help with text on image

Posted: 2009-12-17T06:38:30-07:00
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

Re: help with text on image

Posted: 2009-12-17T09:51:58-07:00
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.