An Interest In:
Web News this Week
- April 12, 2024
- April 11, 2024
- April 10, 2024
- April 9, 2024
- April 8, 2024
- April 7, 2024
- April 6, 2024
April 7, 2022 04:47 am GMT
Original Link: https://dev.to/vadimfilimonov/create-a-watermark-drupal-8-4ie7
Create a watermark / Drupal 8
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:
Original Link: https://dev.to/vadimfilimonov/create-a-watermark-drupal-8-4ie7
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To