Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
April 7, 2022 04:47 am GMT

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

This is what my watermark looks like<br>

Create or edit an image style. Add a new "Watermark" effect.

I decided to edit the image style Large (480480)<br>

Build the following settings:

Image description

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.

Image description

Result:

Before:

Image description

After:

Image description


Original Link: https://dev.to/vadimfilimonov/create-a-watermark-drupal-8-4ie7

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To