Permanant watermark with undo possibility (GD2+IM working!) + better admin tools - Page 6 Permanant watermark with undo possibility (GD2+IM working!) + better admin tools - Page 6
 

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+IM working!) + better admin tools

Started by Stramm, March 31, 2006, 03:33:15 PM

Previous topic - Next topic

0 Members and 3 Guests are viewing this topic.

Joachim Müller


zerillos


jerx


Joachim Müller

Quote from: Stramm on March 31, 2006, 03:33:15 PMIf you want old images to get the watermark too, then you have to run the admin tools. To make it more comfortable for you I've added an 'auto refresh' feature.

Stramm

Quote from: jerx on September 19, 2006, 05:32:49 AM
Is it possible to watermark thumbnails, too?

I think the watermark would not be readable if you downsize the watermark as much as the picture. So it would be nice to be able to downsize the watermark to a configurable width.

of course possible... but not useful for the majority of users. To watermark thumbs you need to change function add_picture
after if (!file_exists($thumb)) {
you need  add an if-else clause and when watermarking is turned on in config ->
            if (!resize_image($work_image, $thumb, $CONFIG['thumb_width'], $CONFIG['thumb_method'], $CONFIG['thumb_use'], "true", 1))

then in the function resize_image you look for $wm_resize = (int)(($destWidth / $wm_normal) * 100);
here you hardcode something like...
if($wm_resize < 100) $wm_resize = 100;


not tested but it should work


b4uphotos

afraid to tell you sir/madem but i did everything fine and no error is coming

while  "nothing happened with this on mysite www.b4uphotos.com" with this changes after ""Updating thumbnails and/or resized images, please wait..." :( no error nothing came no watermark came

Sorry to say but its true with me.. kindly make a support to me


undeshila

ive seen no atached file for 1.4.9 is it the same with the 1.4.8 one ?

Stramm

http://forum.coppermine-gallery.net/index.php?topic=29817.msg143122#msg143122
that file hasn't changed since 1.4.6... if you do not like the version number then download the current modpack and use its picmgmnt.inc.php

derperle

i have do all things you said.

but i get this errors:

Quote/themes/graffity/theme.php

    * Notice line 333: Undefined index: TOPTEN_title

/util.php

    * Notice line 255: Undefined index: mini_pfx
    * Notice line 255: Undefined index: mini_pfx
    * Notice line 255: Undefined index: mini_pfx
    * Notice line 255: Undefined index: mini_pfx
    * Notice line 255: Undefined index: mini_pfx

/include/picmgmt.inc.php

    * Notice line 301: Undefined variable: crop
    * Warning line 436: touch() [function.touch]: Utime failed: Operation not permitted
    * Notice line 452: Undefined index: reduce_watermark
    * Warning line 516: chmod() [function.chmod]: Operation not permitted
    * Notice line 301: Undefined variable: crop
    * Warning line 436: touch() [function.touch]: Utime failed: Operation not permitted
    * Notice line 452: Undefined index: reduce_watermark
    * Warning line 516: chmod() [function.chmod]: Operation not permitted
    * Notice line 301: Undefined variable: crop
    * Warning line 436: touch() [function.touch]: Utime failed: Operation not permitted
    * Notice line 452: Undefined index: reduce_watermark
    * Warning line 516: chmod() [function.chmod]: Operation not permitted
    * Notice line 301: Undefined variable: crop
    * Warning line 436: touch() [function.touch]: Utime failed: Operation not permitted
    * Notice line 452: Undefined index: reduce_watermark
    * Warning line 516: chmod() [function.chmod]: Operation not permitted
    * Notice line 301: Undefined variable: crop
    * Warning line 436: touch() [function.touch]: Utime failed: Operation not permitted
    * Notice line 452: Undefined index: reduce_watermark
    * Warning line 516: chmod() [function.chmod]: Operation not permitted

can you help me???

Stramm

link+testuser account please, make sure that user's allowed to upload pics

derperle

ok.
now it works.
i dont know why but it works.

thank you for the hack.....  :) :) :) :)

derperle

Oh one thing.
I dont want that the script makes orign_flie.jpg cause i dont need.
How can i disable this option??

Stramm

you'll have to modify picmgmnt.inc.php
delete
if (!file_exists($orig) && $CONFIG['enable_watermark'] == '1' && ($CONFIG['which_files_to_watermark'] == 'both' || $CONFIG['which_files_to_watermark'] == 'original'))  {
// if copy of full_sized doesn't exist and if watermark enabled and if fullsized pic watermark=true -> then we need a backup
if (!copy($image, $orig))
                return false;
else
$work_image = $orig;
}


not tested, no guarantee ;)
after that modification you're not able to undo the watermarking

RBasil

Maybe I am missing something, but is there a download where I can just have the watermark option without having to download the entire mod pack? If so can someone point me in the right direction?

Stramm


Joachim Müller


alanlai

good mod.... thanks alot...

i wish the next version of gallery can have it build-in too...

thanks :)

Stramm


mattocean

Hi,

I am using Coppermine 1.4.x and changed every file you requested. Everything works fine, I can upload files but no watermark on them...

I set by the config

Image Watermarking Yes
Bottom right
Original
images/watermark.png
Transparency 50

and save the changes but nothing happens... after I run the config again all my previouse changings are empty...

Help! :)

Thanks! ;)