Text watermark
Apply text overlay
Last updated
Apply text overlay
Last updated
Copyright © 2023 Scaleflex
If you need to tag an image or add a reference number as an overlay, use the text watermark function.
Parameter | Syntax | Description |
---|---|---|
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
| Defines the position to "anchor" the watermark to |
watermark padding | wat_pad=X[p][,Y[p]]
| Adds padding from the anchoring point in pixels (X) or in percent (Xp) |
watermark opacity | wat_opacity=X
| 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 |
Preview | Syntax |
---|---|
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 |