Advanced search  

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]

Pages: [1]   Go Down

Author Topic: Watermark custom thumbs  (Read 5539 times)

0 Members and 1 Guest are viewing this topic.

tim18

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Watermark custom thumbs
« on: August 11, 2007, 04:50:46 am »

Hello, I've searched the boards and found nothing about this problem.

I am trying to upload a custom thumb for a flash movie. In doing so the system watermarked it with the image movie. I realized my mistake and switched
"Watermark custom thumbs (movie, audio, document)" to no in image watermarking under "config".

This has made no difference. Although it now says it wont watermark custom thumbs, its still doing so. What am I doing wrong?

Tim
« Last Edit: August 14, 2007, 12:33:10 pm by Stramm »
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Watermark custom thumbs
« Reply #1 on: August 11, 2007, 06:53:08 am »

You need to reupload the custom thumb

tim18

  • Coppermine novice
  • *
  • Offline Offline
  • Gender: Male
  • Posts: 22
Re: Watermark custom thumbs
« Reply #2 on: August 11, 2007, 03:03:11 pm »

I tried that, then i did it with another completely different picture and same problem. Unfortunately i needed a quick fix so i just opened the watermark image in fireworks and deleted the text. So now although it still watermarks it, noone can see cause its completely transparent. An ugly, ugly solution, but it works.

Tim
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Watermark custom thumbs
« Reply #3 on: August 14, 2007, 12:32:55 pm »

I checked and have seen that I introduced a problem with the downsize function... needs correction

Thanks for the report

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: Watermark custom thumbs
« Reply #4 on: August 14, 2007, 01:11:52 pm »

fix:

in include/picmgmnt.inc.php find
Code: [Select]
if ($media_type != "false"){ //if a manual thumb gets generated we watermark the thumb with the media type
//we now need to get the absolute path to the thumb watermark files
$path_parts = pathinfo($CONFIG['watermark_file']);
$CONFIG['watermark_file'] = $path_parts["dirname"]."/wm_".$media_type.".png";
}

and replace with

Code: [Select]
if ($media_type != "false" && $CONFIG['enable_thumb_watermark']){ //if a manual thumb gets generated we watermark the thumb with the media type
//we now need to get the absolute path to the thumb watermark files
$path_parts = pathinfo($CONFIG['watermark_file']);
$CONFIG['watermark_file'] = $path_parts["dirname"]."/wm_".$media_type.".png";
$CONFIG['reduce_watermark'] = 0; //disable wm downsize for custom thumbs
}
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 20 queries.