News:

cpg1.5.46 Security release - upgrade mandatory!The Coppermine development team is releasing a security update for Coppermine in order to counter recently discovered vulnerabilities. It is important that all users who run version cpg1.5.44 or older update to this latest version as soon as possible.[more]

What this mod doesa) it will watermark fullsized and intermediate images (you can set the one or other or both in config)b) you can turn watermarking on/ offc) creates a backup of the images (so you can undo watermarking)d) works with ImageMagick and GD2e) permanent watermark - puts no extra heat on the server (only when uploading images)f) several tarnsparency optionsg) better admin toolsh) 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 pageUpdate 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

Another MasterPiece Strahm.. Works wonders on my site... But for future modifications to this mod it would be cool to have 2 diff size watermarks like the Plugin offers... A smaller one for the Intermediate pictures and the regular sized one for the Originals...

But im very pleased as the mod went smoothly and without issue.. Thx for the hard work bud!!

Logged

Its gaurunteed.. until it breaks

Lifted trucks are like boob jobs, no matter what size shape or dimension they are always fun to look at.

Another MasterPiece Strahm.. Works wonders on my site... But for future modifications to this mod it would be cool to have 2 diff size watermarks like the Plugin offers... A smaller one for the Intermediate pictures and the regular sized one for the Originals...

But im very pleased as the mod went smoothly and without issue.. Thx for the hard work bud!!

I have created a file called watermark.png and have tried referencing it with full path as well as the default "images/watermark.png".I have applied the mod, modified all the relevent pages, run the update and enabled the Watermark option in the config. I have run the admin tools to update images, tried uploading fresh images via the "File Upload" and "Batch Add" but none of my images seem to be getting a watermark applied and no errors seem to have been thrown up anywhere. I'm sure it is one of those idiot errors on my behalf but im sure I will not be the only one to full into the trap I am in.

Let me take the time to commend you and the team with the great work you have done with coppermine.

properly chmod folders and files.. that's especially important if you upgraded. Reason, now the images get modified and saved again, and that's doing php/ GD2. When you initially uploaded it was apache/ http upload. -> if both run under different users you then group or anon write permissions arte necessary

Uh-oh, now I'm confused. Check what instructions? I don't have any movies or pdf in the albums folder. Only images in the userpics folder and a folder for batch uploading. But they are all chmod accordingly. I asked about the main files because I noticed that they are not all the same chmod. Some of the files in the main directory of coppermine, are 644 and some are 666