WatermarkText
Renders a text as the watermark.
imgproxy: watermark_text (alias wmt) · Availability: imgproxy Pro only
use SomehowDigital\ImgProxy\Url;use SomehowDigital\ImgProxy\Option\WatermarkText;
$url = Url::create() ->source('https://example.com/image.jpg') ->options(new WatermarkText('© 2026 Example'));
$url->build();// _/wmt:wqkgMjAyNiBFeGFtcGxl/plain/https%3A%2F%2Fexample.com%2Fimage.jpgThe option appears in the URL as wmt:wqkgMjAyNiBFeGFtcGxl.
Parameters
Section titled “Parameters”| Parameter | Type | Default | Description |
|---|---|---|---|
$text |
string |
required | The text, without any encoding. Pango markup is supported by imgproxy. |
- The library Base64-encodes the text.