What this mod does
a) it will watermark fullsized and intermediate images (you can set the one or other or both in config)
b) you can turn watermarking on/ off
c) creates a backup of the images (so you can undo watermarking)
d) works with ImageMagick and GD2
e) permanent watermark - puts no extra heat on the server (only when uploading images)
f) several tarnsparency options
g) better admin tools
h) no hardcoded language (supports language files) - added english... so you'll have to switch to english in order to do the config settings (or translate to your lang)
You'll find new entries in coppermine config (Image watermarking)
If you do not enable watermarking here nothing will change compared to an unmodded coppermine (as it should). But as soon as you turn watermarking on, a backup will be created from all new uploaded images and a watermark applied to the intermediate image, the fullsized one or both (depending on your config settings). If you want old images to get the watermark too, then you have to run the admin tools. To make it more comfortable for you I've added an 'auto refresh' feature.
When you're recreating thumbs/ images in the admin tools then you can set an auto refresh flag. If set, the update process auto refreshes and you won't need to click 'continue' anymore.
The big advantage.... you can set the number of images to process to a low value eg (2-5). Now the chances the script times out are limited. Means you don't need to restart the entire process and sit in front of your monitor for hours clicking 'continue' (if you've a huge number of pics in your db)
You can turn auto refresh on/ and off on the admin tools page
Update thumbs and/or resized photos (1) - (checkbox) Auto refresh (no need to click continue button anymore)
To undo watermarks just disable watermarking in config and run the admin tools.
Oh, no you can chose in the admin tools to update only thumbs, only intermediate, only fullsized, thumb and intermediate, intermediate and fullsized or all three
Of course you can delete the backup too (admin tools - Delete original image backup)
However I do not recommend this. Afterwards you won't be able to undo your watermarks. Better undo watermarks and then remove the backup files (unless you're absolutely sure you never will want to remove the watermarks)
Setup:
just apply the following code, replace include/picmgmnt.inc.php with the attached file and run update.php
now have a look at your coppermine config. You'll need to modify the path to the watermark. Preset is a file watermark.png in the coppermine images folder. If that doesn't work for you, use the absolute path to the watermark image
The watermark image should be a .png file. You can make its background transparent in your paint program. Another option to achive that effect is to use feather x,y (GD2 only). Set some point x,y of your watermark image and GD2 will render it transparent. This will not nearly look as good as doing that in your paint program. The transparency settings in config will make the entire watermark transparent to the image background (ImageMagick only).
If you use GD2 then the transparency setting in config has no function. If you want the watermark to be transparent against the background, then reduce layer transparency of your watermark image in your paint proggy to eg. 50
I was working on the watermark mod and have enhanced it's functionality. Now it's able to add a huge watermark file to huge images and downsize the watermark on small images.
go here to apply the extra
http://forum.coppermine-gallery.net/index.php?topic=29817.msg143122#msg143122