Module for adding watermarks to images

Sponsored Links

Module for adding watermarks to images

2bits was commissioned to write a watermark module for Drupal's image module.

The module basically overlays a predefined PNG over each image uploaded. Options exist to restrict the watermarking to certain images and not other (e.g. thumbnails are not watermarked, but full images are).

Ivan Raszl of Creativine and CreativeBits talked me into organizing a bounty for this module before releasing it to the community, and advertised it here. The site has demos as well as a screen shot of the settings page for the module.

Whether this is successful or not remains to be seen.

Here a generic patch that I did which would be used.

Hi,

This is great, and I would like to direct you to a patch that I submitted about six months ago for 4.6 which adds a couple hooks which allow the manipulation of the images by other modules.

checkout http://drupal.org/node/42835

This gives a generic set of hooks which will allows for any type of manipulation including the addition of watermarks.

This will not make your work any less, but it will leave the image module lean, and allow for any number of manipulations to images.

Great

That is great. I hope this makes it to image.module. One of Drupal's most powerful features is hooks, and you use it well in ecommerce.

My approach requires no patching, and uses the nodeapi on insert and update to modify the image.

It also injects the new settings fields into image.module settings page (not really necessary, but less clutter for the admin).
--
Khalid Baheyeldin

Might pick up where I left: imageactions

I once had a working proof of concept, for this, using image module, actions module and workflow modules. And a module image actions.

Basically it adds a range of actions that can be performed in steps or based on criteria to images:
* greyscaling
* sepiatone-ing
* rotations
* watermarking (+settings for what image to use as watermark)

It is old, and it will probably no longer work, but it might be a nice route to look at. Can be found in my sandbox.

Tried it

I tried it before I wrote this module, but it did not work.

I can't remember the details, but I think it was that the action never fired no matter what I did.
--
Khalid Baheyeldin

Post new comment

  • All spam and irrelevant comments will be deleted.
  • Comments posted here will take some time to appear on the site. Do not post your comment again if you do not see it. Just be patient and it will be published.
  • Note that what you post here will be publicly available on the web and will be indexed in search engines.
  • We reserve the right to unpublish any comments without stating the reasons for that.
  • All postings are subject to our Terms of use
The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote>
  • Lines and paragraphs break automatically.

More information about formatting options