Permanant watermark with undo possibility (GD2+IMagick) - Page 8 Permanant watermark with undo possibility (GD2+IMagick) - Page 8
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Permanant watermark with undo possibility (GD2+IMagick)

Started by Stramm, March 26, 2005, 06:09:36 PM

Previous topic - Next topic

0 Members and 16 Guests are viewing this topic.

genom


Stramm

#141
This is not the orig but the normal file (already highly compressed to 17k)... still it doesn't matter and it looks sweet after watermarking.

Have a look yourself (14k after watermarking, I always use image quality 80%)
http://stramm.mine.nu/displayimage.php?pos=-102

A word to your manners. I really like to help. But it's disgusting to get abused as one's personal php advisor. If you tell me you have problems then I need some infos. With these infos I can tell you in most cases where the problem is. Now it's your turn to say if that helped you to solve your problem and what finally was the problem. This probably can help others and I won't have to answer the same stuff again and again.

Stramm


genom

sent you the access again
and how in yours cpg it didnt turn the quality to crap
can you tell me how?

and I installed the script succesfully you can see for yourself
its just give me some
Warning: chmod(): Operation not permitted
when I change the pics in the admin tools
but it says it changes it successfully

Stramm

I couldn't test it... looks like you have already removed the watermark sql entries. So it's not possible for me to enable and/ or change watermark related settings

the watermark mod works perfect once you've installed it properly.
And I've even tested your image again with the picmgmnt.inc.php from this thread... still working smooth as butter.


genom

yes it does work perfect on some pics
but some of them it doesnt work good

just wanted to know did it delete the watermark pics
or I need to delete them manually with ftp?

Stramm

you said you ran the admin tools to watermark them all and later again to remove the watermarks... If you now open an image within coppemine and you don't see a watermark anymore then it probably got removed.

genom

ok I will do more experiments in the next few days with this watermark

scrich

Hello, i'm new here in the forums and i've got a problem whith this mod:

I've done all that you said in the first page and I don't get any error, but my watermark doesn't appear. It's with the full, real, path, but when I do the admin tools, it doesn't appear in any image. Which could be the problem?

Thanks.

Stramm

the transparency setting probably... raise it to ~40-50. 0 means there is no watermark overlay over the picture

scrich

Quote from: Stramm on September 04, 2005, 04:19:13 PM
the transparency setting probably... raise it to ~40-50. 0 means there is no watermark overlay over the picture
I tried with 70 and nothing...  :\'(

Stramm

the standard problems are
- not properly updated sql (when you change settings and reopen config the just modified stuff doesn't show anymore)
- wrong path to the watermark image (realative or webpath instead of absolute path)
- the mentioned transparency
- picmgmnt.inc.php placed in cpg main dir instead of include

does it watermark when you do a normal upload? If so then check the changes you did in util.php again. Please report back

scrich

Got it!  :D The problem was i have picmgmnt.inc.php in cpg main instead of include. Thank you very much.

Now, another problem. I use a png watermark, but the in the photo is showed like this:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fencancha.com%2Fcpg%2Falbums%2Fuserpics%2F10001%2FIS5P1268.jpg&hash=1c7a223100bd49d2fca5b58c935a74de8e3c23de)
Can i solve it?

Stramm

there are a lot of possibilities to fix that
1. use IMagick
1. only use one of the transparency features at a time (only transparent background or transparency against the image background)... not nice, I know
3. Make the background not transparent in the wm image but eg. white. Then use Set color transparent x,y and point it to a white point in your watermark (usually x,y = 1 should do). If you've set this, then GD2 will make all white pixels transparent. Still there's a backdraw, it doesn't look to pretty
4. The best solution is to make the image background transparant as you did. Then set layer transparency of the watermark to ~30-40. Save as png24 with transparency. Now the image transparency in config doesn't have a function anymore. You control it just with the layer transparency in your paint proggy.
now find in picmgmnt.inc.php
ImageCopyMerge($dst_img,$logoImage,$src_x,$src_y,0,0,$logoW,$logoH,$CONFIG['watermark_transparency']); //$dst_x,$dst_y,0,0,$logoW,$logoH);
and replace with
ImageCopy($dst_img,$logoImage,$src_x,$src_y,0,0,$logoW,$logoH);

If I'm not mistaken then this problem only occurs with newer php versions

scrich

Great!!  :D It's solved:
(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fencancha.com%2Fcpg%2Falbums%2Fuserpics%2F10001%2FIS5P1268.jpg&hash=1c7a223100bd49d2fca5b58c935a74de8e3c23de)
I did what you said in 4th place and it worked perfectly. Thank you very much  :)

u-n-i

Quote4. The best solution is to make the image background transparant as you did. Then set layer transparency of the watermark to ~30-40. Save as png24 with transparency. Now the image transparency in config doesn't have a function anymore. You control it just with the layer transparency in your paint proggy.
now find in picmgmnt.inc.php


worked for me too

thanks mate

u-n-i

a suggestion

it wud be good if this can be added

option to choose the wm position (top/bottom/bottom right etc.) at upload place
so we can change position if wm color is same as of pic color at already specified position



hope to see this one very soon :)

finnerss

Hi there, this sounds like a marvelous mod,  the only thing I  have as a problem is I always get mixed up with the steps and all, and since we're releasing the website to the public soon, the watermarks would be very useful but I'm not very good when it comes to changing code and all. I haven't added any mod to my coppermine 1.3 version (I installed 1.4beta but not using it right now). Any chance the files could be set in a pack to simply replace the files? I can give you the full information you might need or just let me know what settings would I need to set in order to just get the modified files, upload to the proper folders, and replace those files that were changed.

This would be very appreciated and I know it might be a lot of work, I will give you full credit at the site for the watermarks and try to look for an option to show our appreciation and thanks.

Best wishes

Sergio

sergio@bustamante.as is my e-mail, it might be easier this way but I'll keep on checking this thread. :)

Sergio

Stramm


clubvibe

I just modded my CPG with stramm's modpack and it's working great except for the watermarking. on a single upload the watermarking isn't a problem, but it doens't work on a batch upload. Isn't this mod able to watermark batch uploads? or am I making a mistake?