Skip to content

WatermarkShadow

Adds a shadow to the watermark.

imgproxy: watermark_shadow (alias wmsh) · Availability: imgproxy Pro only

use SomehowDigital\ImgProxy\Url;
use SomehowDigital\ImgProxy\Option\WatermarkShadow;
$url = Url::create()
->source('https://example.com/image.jpg')
->options(new WatermarkShadow(3));
$url->build();
// _/wmsh:3/plain/https%3A%2F%2Fexample.com%2Fimage.jpg

The option appears in the URL as wmsh:3.

Parameter Type Default Description
$sigma float required Size of the shadow’s blur mask. 0 disables the shadow.

imgproxy reference