This content originally appeared on DEV Community and was authored by Vadim Filimonov
Install module Image Effects:
composer require drupal/image_effects ; drush en image_effects -y
Upload the watermark. I'll put it in a folder:
sites/default/files/custom/watermark/test-watermark.png
Create or edit an image style. Add a new "Watermark" effect.
Build the following settings:
Watermark drawing: Watermark file path;
Watermark resize: I only set the width, the height is calculated automatically;
Position:Center by default.
Save.
Do not forget to assign this image style to the desired image. In my case - it is a picture announcement news.
Result:
Before:
After:
This content originally appeared on DEV Community and was authored by Vadim Filimonov

Vadim Filimonov | Sciencx (2022-04-07T04:47:58+00:00) Create a watermark / Drupal 8. Retrieved from https://www.scien.cx/2022/04/07/create-a-watermark-drupal-8/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.