This module adds a watermarking method for images. Chainable and available on the Image class.
composer require samthejarvis/silverstripe-watermarking dev-master
Adds a Watermarking tab to /admin/settings. Here you can specify a watermark image as well as transparency and position defaults.
- SilverStripe Framework 3.1
$Image.Watermark
$Image.CroppedImage(300, 300).Watermark
$Image.CroppedImage(300, 300).Watermark(5, 50);
The position parameter takes an integer from 1 to 9 and sets the watermark to appear to that number's corresponding position on a keypad. Alternatively, the position can be set to 0 which will cause the watermark to be applied in a tiling pattern.
E.g. 5 will set the watermark to appear in the center.
789 000
456 OR 000
123 000
The transparency parameter takes an integer from 0 to 100.
Configurable GD watermarking based on memdev/silverstripe-watermarkable.