Snippets - Text
NOTE: Most of the IM snippets have been tested on IM version 6.3.5 There may be some differences if you are using the code on other versions.
Text made from an image on another image - Anthony 21/6/2008
This creates some text from on image and places it on another image.
<?php// Create the text from an image and a tempory mask of the word Rubblewebs$cmd = " -size 490x110 xc:none -pointsize 90 "." -gravity center -fill black -annotate +0+0 \"Rubblewebs\" miff:- | "." composite -compose Dst_In -gravity center - input.jpg -matte";Create tempory imageexec("convert $cmd temp.png");// Place the word image from above over the second imageexec("composite -gravity center temp.png input1.jpg output.png ");// Delete tempory imageunlink('temp.png');?>

For more examples and information check out the main Imagemagick section.
Add a label ViewChange font to Italic View
Fonts installed View
Fonts Installed view View
Label with image data View
Multiple text on an image View
Text made from an image on another image View
Watermark text and shadow View
Watermark tiled text View