width requiredThe image width in pixels. Required: imgtext returns an empty string if width, height or text is missing.
height requiredThe image height in pixels. Required alongside width and text.
text requiredThe caption to draw on the image. Required and must not be blank after trimming. It is URL-encoded into the request and also copied to the img tag alt attribute.
size optionalFont size. For the built-in font use 1 to 5 (5 is largest); for a TrueType font (see the font parameter) this is the point size. Empty leaves the phpThumb default built-in size.
alignment optionalWhere the text sits on the canvas. Use one of the corner/edge/centre codes, * to tile, or an absolute pixel offset written as xoffsetXyoffset (for example 10x20, measured from the top-left corner). Empty places the text top-left.
color optionalHex colour of the text, without a leading hash (for example cc0000 for red). Empty uses the phpThumb default (black for the built-in font).
font optionalFilename of a TrueType (TTF) font. Empty uses the built-in pixel font. A TTF font is needed for rotation (angle) and for tiling (* alignment) to work fully.
opacity optionalOpacity of the text from 0 (transparent) to 100 (opaque). Empty draws the text fully opaque.
margin optionalEdge margin (and, when tiling, inter-tile margin) as a percentage. Empty uses no extra margin.
angle optionalRotation angle of the text in degrees. Empty means no rotation. Rotation requires a TrueType font.
background optional default FFFFFFHex colour of the background, without a leading hash. This also fills the whole canvas via the new= parameter.
bg_opacity optional default 0Background opacity from 0 (transparent) to 100 (opaque). With the default 0 the background colour is transparent, so the canvas stays white.
{imgtext:200:60:Draft copy}
{imgtext:200:60:Draft copy:4:C:cc0000}
{imgtext:20:210:My picture text:3:TL:000000::::90}
{imgtext:300:80:On sale:5:C:FFFFFF::100:::000000:100}
{substr:{imgtext:200:60:Draft copy}:0:5}
[{imgtext:200:60:}]