Text watermark
Apply text overlay
Last updated
Apply text overlay
Last updated
©2024 Scaleflex SAS
use watermark
wat=1
(required) Activates the watermark function
watermark text
wat_text=X
(required) The text to be overlayed. Can be URL-encoded
watermark position
wat_gravity=X
X=[north|south][east|west]|center
Defines the position to "anchor" the watermark to
watermark padding
wat_pad=X[p][,Y[p]]
X/Y=0..100[p]
Adds padding from the anchoring point in pixels (X) or in percent (Xp)
watermark opacity
wat_opacity=X
X=0..1
Defines watermark opacity
watermark font
wat_font=X
Choose the font family for the overlay
watermark color
wat_color=X | wat_colour=X
Sets the text color
watermark font size
wat_fontsize=X | wat_fontsize=Xmax
Sets the font size. If the Xmax syntax is used, the size is reduced if the text cannot fit in the image
Text size limit set with wat_fontsize=20max: /docs/flat1.jpg?w=400&wat=1&wat_gravity=north&wat_text=A%20VERY%20LONG%20TEXT%20WHICH%20WON%27T%20FIT&wat_pad=10&wat_font=Arial-Black&wat_fontsize=20max&wat_color=000