Advanced search  

News:

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

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

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

0 Members and 1 Guest are viewing this topic.

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 #120 on: September 02, 2005, 11:31:57 am »

looks to me like as if you haven't applied the sql or you did it wrong... have you changed the table prefix to the one you use??

genom

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #121 on: September 02, 2005, 11:35:13 am »

what you mean
I did do the query thing in sql...

insert into cpg_config (name, value) values ('enable_watermark', '1');
insert into cpg_config (name, value) values ('where_put_watermark', 'bottomright');
insert into cpg_config (name, value) values ('watermark_file', '/your/full/path/to/logo.png');
insert into cpg_config (name, value) values ('which_files_to_watermark', 'both');
insert into cpg_config (name, value) values ('orig_pfx', 'orig_');
insert into cpg_config (name, value) values ('watermark_transparency', '0');
insert into cpg_config (name, value) values ('watermark_transparency_featherx', '0');
insert into cpg_config (name, value) values ('watermark_transparency_feathery', '0');

ohh I think I know the problem
in watermarkfile
I need to use the url to the file?
what do you mean full path?
Logged

genom

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 65
Re: Permanant watermark with undo possibility (GD2+IMagick)
« Reply #122 on: September 02, 2005, 11:43:42 am »

well I did it right now
but its not updating the pics with the watermark
they are still without watermark
what to do?

fixed the error in util.php
but still not working
what it can be?
is it the png file?
« Last Edit: September 02, 2005, 11:54:20 am by genom »
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 #123 on: September 02, 2005, 12:02:47 pm »

I mean if you have changed the prefix cpg_ to the one you use.

The absolute path eg on windows is c:\apache\mysite.com\htdocs\cpg\images\mywatermark.png
on nix eg. /usr/home/stramm/mysite.com/htdocs/cpg/images/mywatermark.png

if you don't give it the absolute URL it (imagemagick, gd2) can't find the watermark image and therefore of course won't apply it

genom

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

I will search for my absolute path
Logged

genom

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

when I try to add it with my absolute path
it gives me this error:
#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '/home/healthnfit/domains/healthnfit.org/public_html/cpg132/watermark.png');
ins' at line 1
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 #126 on: September 02, 2005, 12:30:20 pm »

as already mentioned above... you have a problem with your SQL. I've asked you if you've changed the prefix (cpg_) to the one you actually use?

so eg. change this
insert into cpg_config (name, value) values ('enable_watermark', '1');
to (if your prefix eg. is cpg134_)
insert into cpg134_config (name, value) values ('enable_watermark', '1');
or (if your prefix eg. is coppermine_)
insert into coppermine_config (name, value) values ('enable_watermark', '1');

edit: and what 'error' did you fix in util.php?? If you haven't applied the sql correctly nothing will work. But if you really found an error what about posting it here?



genom

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

ok fixed the problems
but still not putting the watermark
I did change the prefix and absolute path
this is what I put in sql
insert into cpg132_config (name, value) values ('enable_watermark', '1');
insert into cpg132_config (name, value) values ('where_put_watermark', 'bottomright');
insert into cpg132_config (name, value) values ('watermark_file', '/home/healthnfit/domains/healthnfit.org/public_html/cpg132/watermark.png');
insert into cpg132_config (name, value) values ('which_files_to_watermark', 'both');
insert into cpg132_config (name, value) values ('orig_pfx', 'orig_');
insert into cpg132_config (name, value) values ('watermark_transparency', '0');
insert into cpg132_config (name, value) values ('watermark_transparency_featherx', '0');
insert into cpg132_config (name, value) values ('watermark_transparency_feathery', '0');

do I need to change anything in the cpg admin configuration of the watermark?
also about the util I just didnt edit it right but fixed 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 #128 on: September 02, 2005, 12:44:49 pm »

set the watermark transparency to 100 (means off) or at least to 30-50 to see the watermarked image. Now it's fully transparent

genom

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

still cant see it
whats the pixels of the watermark png file needs to be?
maybe its too "big" or something like this?
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 #130 on: September 02, 2005, 01:31:20 pm »

the wm size shouldn't matter at all... pm me your URL if you want. A temporary cpg admin account would be useful

genom

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

check your pm box
thanks again
Logged

genom

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

I just noticed that its working
but only on new uploads
how can I make all the old pics that are already in the gallery to have the watermark?
Logged

genom

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

nevermind thanks
fixed it all
thank you again!
but some pics it ruins the pic quality
how can I fix it?
it pixelizing them??!?
« Last Edit: September 02, 2005, 04:11:38 pm by genom »
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 #134 on: September 02, 2005, 04:20:06 pm »

yes, it only works on new pics.. to watermark old ones you'll have to use the admin tools.

Adding watermarks means that you'll have to compress your images a second time. This means you'll lose image detail. You won't see any difference if you use good quality source files. But if you laready have highly compressed base material this can lead to problems.

If you send me a URL I'll have a look. Best would be if you could send me the original file before watermarking

genom

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


how can I remove the watermark
and get back to the orginial pics
your script ruins the quality of the pics but really ruins them
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 #136 on: September 02, 2005, 04:34:32 pm »

Quote
If you send me a URL I'll have a look. Best would be if you could send me the original file before watermarking

The watermark script doesn't resize anything but it has to attach the watermark and therefore needs to recompress the image. Read the Imagick documentation to learn more about this.

You can try to raise image quality in your settings.

genom

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

nm
how can I get back to the originial pics without watermarks?
can you tell me please how
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 #138 on: September 02, 2005, 04:39:38 pm »

OK, you never say what you do... you don't send me a link that I can check the stuff, you don't send me an image to have a look at and you don't read the coppermine documentation nor have you read the first two posts of this thread...

I still guess you messed something up when applying the mod... however this way I cant help you.

To undo the watermark use the admin tools as you did to watermark your old pictures

genom

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

ok thanks I can give you here original pic that it ruined it
heres good example:
http://www.healthnfit.org/cpg132/albums/userpics/normal_kobi17.jpg
this picture was ruined (pixelized)
dont know why
it has good quality on it
btw this is the original pic
without watermark
Logged
Pages: 1 ... 3 4 5 6 [7] 8 9 10 11 ... 15   Go Up
 

Page created in 0.022 seconds with 19 queries.