Back to the snippets index

Transparent text ( Anthony 17/6/2008 )

Add a transparent text watermark to an image. In this case the text is transparent; the transparency is set with the last value in rgba\(0,0,0,0.4\).

IM code:

<?php  
$cmd 
" input.jpg -pointsize 50 -font ../verdane.ttf -fill rgba\(0,0,0,0.4\) ".
" -gravity center -annotate +0+0 \"Rubblewebs\" "

exec("convert $cmd output.jpg"); 
?> 

Image to go with Transparent text example code
Image watermark
Multiple image watermarks
Rotated transparent text
Transparent text
Watermark an animated gif
Watermark text and shadow
Watermark tiled text