Watermark feature.

Tytest - July 18, 2009 - 05:47
Project:Image Picker
Version:6.x-2.1
Component:Code
Category:feature request
Priority:critical
Assigned:Unassigned
Status:active
Description

One thing missing is watermark functionality. Would be nice to have this feature.

Other than that, great module. Very intuitive and a much better than all the other image modules I've tired.

#1

hutch - July 18, 2009 - 10:15

I have no idea how that would be done, imagemagick or somesuch. Image professionals tell me they always do their watermarking before uploading, that way they can make undoing watermarks more difficult ;-)

If you can point me to existing functions that can easily be used I'll look into it, or write a patch!

#2

Tytest - July 18, 2009 - 17:02

Hutch,

PHP GD2 and ImageMagick will both do the trick. Though GD2 is the less powerful of the two, I believe it is part of PHP5 and doesn't require an additional package so most people using Drupal will already have the functionality. I did a quick Google search on "Watermark with PHP GD2" and found a few examples. Alternativly with PHP you could use CopyMerge.

http://www.php.net/manual/en/function.imagecopymerge.php

With ImageMagick, you'd need to do a check to see if it's installed. Mainly you need "/user/bin/composite" (On Linux systems). The command is something like:

composite -dissolve 15 -tile watermark.png src.jpg dst.jpg

http://www.imagemagick.org/script/command-line-options.php#composite

#3

hutch - July 18, 2009 - 17:39

Thanks! I will investigate the possibilities

#4

hutch - August 6, 2009 - 12:14

Watermarks now in dev version, please test

 
 

Drupal is a registered trademark of Dries Buytaert.