Snippets - Text

Snippets index page

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.

Change font to Italic - Anthony 14/6/2008

This code creates a light blue rectangle then writes italic text onto it.

  1. <?php
  2. $cmd "-size 150x40 xc:lightblue -font verdana.ttf".
  3. " -pointsize 25 -style italic -draw"
  4. " \"gravity center fill black text 0,0 'Italic font'\"";
  5. exec("convert $cmd output.png"); 
  6. ?> 

For more examples and information check out the main Imagemagick section.

Add a label View

Change 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