Advanced search  


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.

Pages: [1]   Go Down

Author Topic: Watermarking thumbnails  (Read 3732 times)

0 Members and 1 Guest are viewing this topic.


  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Watermarking thumbnails
« on: June 12, 2009, 12:07:20 pm »

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


  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Watermarking thumbnails
« Reply #1 on: June 13, 2009, 04:06:36 pm »

in util.php find
Code: [Select]
        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"


  • Coppermine newbie
  • Offline Offline
  • Posts: 2
Re: Watermarking thumbnails
« Reply #2 on: June 13, 2009, 05:36:26 pm »

Perfect, Stramm - thank you *very* much :-)
Pages: [1]   Go Up

Page created in 0.019 seconds with 19 queries.