Advanced search  

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

Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 15   Go Down

Author Topic: Permanant watermark with undo possibility (GD2+IMagick)  (Read 273480 times)

0 Members and 1 Guest are viewing this topic.

genom

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #140 on: September 02, 2005, 04:52:33 pm »

btw I already sent you admin access in pm!
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #141 on: September 02, 2005, 04:56:25 pm »

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.
« Last Edit: September 02, 2005, 05:34:17 pm by Stramm »
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #142 on: September 02, 2005, 04:56:57 pm »

btw I already sent you admin access in pm!

this was a 404

genom

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #143 on: September 02, 2005, 05:00:28 pm »

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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #144 on: September 02, 2005, 05:23:04 pm »

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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #145 on: September 02, 2005, 05:25:36 pm »

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?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #146 on: September 02, 2005, 05:32:28 pm »

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

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #147 on: September 02, 2005, 06:02:36 pm »

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

scrich

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #148 on: September 04, 2005, 04:14:52 pm »

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.
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #149 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

scrich

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #150 on: September 04, 2005, 04:29:50 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...  :\'(
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #151 on: September 04, 2005, 04:39:03 pm »

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

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #152 on: September 04, 2005, 04:43:58 pm »

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://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fencancha.com%2Fcpg%2Falbums%2Fuserpics%2F10001%2FIS5P1268.jpg&hash=1c7a223100bd49d2fca5b58c935a74de8e3c23de)
Can i solve it?
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #153 on: September 04, 2005, 06:20:34 pm »

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
Code: [Select]
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
Code: [Select]
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

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #154 on: September 04, 2005, 06:37:29 pm »

Great!!  :D It's solved:
(https://forum.coppermine-gallery.net/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  :)
Logged

u-n-i

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #155 on: September 13, 2005, 10:34:24 am »

Quote
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


worked for me too

thanks mate
Logged

u-n-i

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #156 on: September 13, 2005, 10:41:15 am »

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 :)
Logged

finnerss

  • Coppermine newbie
  • Offline Offline
  • Posts: 8
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #157 on: September 14, 2005, 03:08:23 am »

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
Logged

Stramm

  • Dev Team member
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #158 on: September 14, 2005, 08:34:50 am »

check the 2nd post in this thread

clubvibe

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #159 on: September 19, 2005, 08:28:09 pm »

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?
Logged
Pages: 1 ... 4 5 6 7 [8] 9 10 11 12 ... 15   Go Up
 

Page created in 0.04 seconds with 19 queries.