Page 1 of 1

Annotate Help

Posted: 2007-01-03T00:24:50-07:00
by swampy
Hi i am all new to image magic i would like some help with programming a script to annotate text on to a background image from a form and ttf font i am willing to pay if someone could make me an example script that i can use to learn with. contact me if you can help.

please forgive me if i am in breach of any rules i have been trying to do this for months with no sucess and this is my last resort.

thanks
swampy

example of what i am trying to do here
http://www.says-it.com/concertticket/

Posted: 2007-01-03T11:16:46-07:00
by Bonzo
Check out the code at the bottom of this page:
http://www.rubblewebs.co.uk/imagemagick ... k_text.php

Change this to the path of your font :
-font Helvetica-Bold
If the font is in the same folder as the code
-font verdana.ttf

Posted: 2007-01-03T19:05:16-07:00
by anthony

Posted: 2007-01-04T04:07:58-07:00
by swampy
anthony wrote: See Im Examples, Annotation Images
http://www.cit.gu.edu.au/~anthony/graph ... nnotating/


Thank you Anthony this explains the text very nicley but i have one problem now ho to get the text from a form on to the image for example the name field from a form on to the image after you sumit the form do you have any examples of forms and the php that needs to be in the php file


thank you so much

swampy

Posted: 2007-01-04T08:41:24-07:00
by redace
swampy wrote: i have one problem now ho to get the text from a form on to the image for example the name field from a form on to the image after you sumit the form


Swampy,
You can use the POST variables from your form in PHP to build a text string containing your annotate command, then do a system call using the string you just built to generate the image, then print out a HTML string to display the image.

Posted: 2007-01-04T17:28:54-07:00
by anthony
This is also PHP specific. not IM specific. If you can get the info, you can pass it to IM.