No Thumbnail Watermark? No Thumbnail Watermark?
 

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

No Thumbnail Watermark?

Started by vietchyqee, September 21, 2006, 12:16:25 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

vietchyqee

I read this...
QuoteYou can find my samples in the folder images/
the thumb watermarking is not dependent of the config setting 'Watermark Image yes|no'. That's only for normal and fullsize images
If you've enabled minithumbs these will get created for the custom thumbs too and you can use them eg. again as category lead image (check my demo site)
here...
http://forum.coppermine-gallery.net/index.php?topic=28367.0
I made a test run of the watermarking on my images and realized that it only watermarked my original image but not my thumbs. Is that what the above quote means? That it can't watermark thumbnails? I'm having difficulty understanding that quote. ???

Stramm

The watermark function doesn't watermark thumbs. What you refer to is the custom thumb tool. If you upload a custom thumb for eg. a movie file, then you can tag the thumb with a 'special watermark' like Movie
example: http://stramm.st.funpic.org/index.php?cat=4

If you want to watermark thumbs too you'll need to edit picmgmnt.inc.php

vietchyqee

There isn't a thread that shows how to do the picmgmnt.inc.php, how would I go about editing it? I'm a newbie at all of this, I'm surprised I've gotten as far as I have with this forums assistance. Thanks

Stramm

find
        if (!file_exists($thumb)) {
            if (!resize_image($work_image, $thumb, $CONFIG['thumb_width'], $CONFIG['thumb_method'], $CONFIG['thumb_use'], "false", 1))
                return false;
        }

replace with
        if (!file_exists($thumb)) {
            if (!resize_image($work_image, $thumb, $CONFIG['thumb_width'], $CONFIG['thumb_method'], $CONFIG['thumb_use'], "true", 1))
                return false;
        }


thumb watermarking is always on then... the 'enable watermark' config setting doesn't matter at all for thumbs. You'd need to add an if-else clause for that (like for the intermediate image a few lines below)

vietchyqee

Thank you so much Stramm for your help, I really appreciate it!

Stramm

I just remembered that the same question was in the watermarking thread... there's also answered how to do the resizing http://forum.coppermine-gallery.net/index.php?topic=29817.msg171041#msg171041

vietchyqee

QuoteI just remembered that the same question was in the watermarking thread... there's also answered how to do the resizing http://forum.coppermine-gallery.net/index.php?topic=29817.msg171041#msg171041

i did as said and also replaced...
$wm_resize = (int)(($destWidth / $wm_normal) * 100);
with...
if($wm_resize < 100) $wm_resize = 100;

somehow the watermark doesn't resize, i've even configured my gallery to downsize the watermark if picture is smaller than 100%. what could i have missed?

Stramm

in config 'Downsize watermark'... set it to 1024 or 1280 and not 100%. It must be enabled