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.

Label with image data - Anthony 21/6/2008

This takes some information from the image and uses it in the label. In this case width x height.

  1. <?php
  2. exec("montage -geometry +0+0 -background skyblue -label \"%wx%h\" input.jpg output.jpg"); 
  3. ?>

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