How to automatically add watermarks to uploaded images in Drupal

| Drupal Development | 81 seen

Drupal is a powerful content management system (CMS) that allows users to create and manage websites with ease. One of the features that make Drupal popular among users is its flexibility and extensibility. Drupal's module system allows users to add functionalities to their websites, including automatic watermarking of uploaded images.

If you are making photos and publicizing them to the internet - sooner or later you will find that you want to protect them somehow.

Protect yourself from people stealing your artwork and re-publishing pictures in other places. One way to protect images is to add watermarks. Well, it doesn't mean someone still won't steal your pictures, but at least your watermark will be on. 

I have found one solution in Drupal 7, using the ImageCache action module:

As you can see on picture above - I have added simple watermark on bottom right corner. And it's done with Drupal Image Cache actions module.

  • Download ImageCache actions module
  • Extract to sites/all/modules
  • Enable Imagecache Canvas Actions

Now go to your image style settings (admin/config/media/image-styles) and add new or edit existing image style.

Here you can see I have added new Effect Overlay (watermark) and added image on that.

You can use some photo editing software to create your image to add on image, or you can use your existing logo, for example. I created simple .png transparent file with text on that, and rotated it 90°

Image Cache actions give you some options for where to place a watermark. I have chosen to place it bottom right. 

I would call this a foolproof solution, to protect your images. The negative aspect is that, if you are familiar with Drupal file upload path settings you can easily take the original image, which came without a watermark. On the other hand, I guess you can use some permissions, to disallow users to access original files. Not sure, right now.

If you need help with Drupal website development, consider hiring me

 

Latest articles

LEGOLAND Berlin Review: A Fun Family Activity in the German Capital

When planning a family trip to Berlin with children, most travelers immediately think about the Berlin Zoo — and rightly so. But if you are spending a few days in the German capital with younger kids, another solid half-day activity is the LEGOLAND Discovery Centre BerlinWe visited it in April 2026 together with our 7-year-old daughter during our…

Germany |

Ādģēri: The 30K Mistake That Turned Into a Long-Term Experiment

In 2023, we bought Ādģēri in an online auction.Price: just over €30,000.Financing: ~6% interest.Total expected payment over ~5 years: ~€40,000.Status (April 2026): more than half already paid.On paper, it was a bad deal.Realistically, we overpaid by at least 5–6× relative to what the property was objectively worth at the time. No serious buyer…

Ādģēri |