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

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]

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 10 Guests are viewing this topic.

Stramm

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

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?

genom

#122
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?

Stramm

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


genom

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

Stramm

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

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

Stramm

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

still cant see it
whats the pixels of the watermark png file needs to be?
maybe its too "big" or something like this?

Stramm

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

genom


genom

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?

genom

#133
nevermind thanks
fixed it all
thank you again!
but some pics it ruins the pic quality
how can I fix it?
it pixelizing them??!?

Stramm

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


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

Stramm

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

nm
how can I get back to the originial pics without watermarks?
can you tell me please how

Stramm

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

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