News:

cpg1.5.44 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.42 or older update to this latest version as soon as possible.[more]

AuthorTopic: Permanent Watermark with GD2 (Read 190191 times)

I was unable to modify my original post and I do think that the top post should be the newest version. So I suggest you either split this post off or move it to the first somehow.

I decided to "modify" this mod so it'll work in CPG 1.3 and my brother helped me fix the "_normal" bug

Permanent Watermark with GD2 MOD by Sammy

For CPG users who wants to add GD2 watermark function on their gallery.

This MOD uses GD2!

Here is how to mod CPG 1.3 to be able to add watermark automatically on new pics and by choise on all pics in selected album. This is quite long post, but it takes only about 10 minutes to add this mod

Files that needs to be modified:Lang/english.phpinclude/picmgmt.inc.php util.phpconfig.php (and 4 SQL command to execute)

the prefix highlighted in red should be edited by the user to make sure it corresponds to their gallery prefix.. latest CPG should have cpg130 as prefix.

the path to the watermark image highlighted in blue has to be the full directory path to the image and not a URL

Thats it. Now You can go to settings and set it up.Actually You need to go there, before trying to add new pics.You have to change 'Which file to use for watermark' to point to your own logo.png file that is used as watermark.

no, you can only add watermark B to the already watermarked pic afaik. It's strongly recommended you do watermarking on your client before uploading, will bring much better results and less load on the server. There are some good watermarking apps like PictureShark available for free.

no, you can only add watermark B to the already watermarked pic afaik. It's strongly recommended you do watermarking on your client before uploading, will bring much better results and less load on the server. There are some good watermarking apps like PictureShark available for free.