Annotate Help

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
swampy

Annotate Help

Post 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/
Last edited by swampy on 2007-01-03T15:56:41-07:00, edited 1 time in total.
Bonzo
Posts: 2971
Joined: 2006-05-20T08:08:19-07:00
Location: Cambridge, England

Post 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
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
swampy

Post 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
redace

Post 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.
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Post by anthony »

This is also PHP specific. not IM specific. If you can get the info, you can pass it to IM.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply