Watermarking thumbnails Watermarking thumbnails
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

Watermarking thumbnails

Started by diniel, June 12, 2009, 12:07:20 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

diniel

I'm using fairly large thumbnails and would like to apply a scaled down watermark to them.

I have followed the useful notes already at posted by Stramm a couple of years ago here on how to edit picmgmnt.inc.php and have already got the thumbnails of *new* uploaded photos being sucessfully uploaded, but can't find how to apply the watermarks to existing thumbnails.

When I use the Admin Tools page to update thumbnails, the newly uploaded images which *have* the watermark are updated so that they *don't* have the watermark.  Contrary to some of the posts following Stramm's original notes, the watermark resizing is working great.

It appears the code I've already changed in picmgmnt.inc.php deals with photos as they're uploaded, and that there is some other code that handles updating photos already uploaded when using the Admin Tools page.

Does anyone know which other part of the code I need to be looking for?

Stramm

in util.php find
        if ($updatetype == 0 || $updatetype == 2 || $updatetype == 5)  {
            if (resize_image($work_image, $thumb, $CONFIG['thumb_width'], $CONFIG['thumb_method'], $CONFIG['thumb_use'], "false", 1)) {

and make the "false" a "true"

diniel

Perfect, Stramm - thank you *very* much :-)