Cloudimage - Documentation

Text watermark

If you need to tag an image or add a reference number on an image, use the text watermark.

Example

/sample.li/flat1.jpg?w=550&wat=1&wat_gravity=northeast&wat_text=REF00189300B&wat_pad=10&wat_font=Arial-Black&wat_fontsize=18&wat_colour=660000

Options

optionsyntax
use watermarkwat=1
required
watermark textwat_text=X
watermark positionwat_gravity=X
X = [north-south][east-west]
watermark paddingwat_pad=X[p][,Y[p]]
X,Y - in pixels
Xp,Yp - in percent
watermark opacitywat_opacity=X
X = 0..1
watermark font familywat_font=X
the full list of available fonts can be found here
watermark text colourwat_colour=X | wat_color=X
X - hexadecimal code or colour name
watermark font sizewat_fontsize=X
wat_fontsize=Xmax
X - set exact font size
Xmax - set maximum font size

Limit font size

Instead of setting an exact font size, you can set a maximum font size. In this case, font size will be reduced if the watermark cannot fit in the image.