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: patch: enable non-transparent of watermarks with gd2  (Read 3658 times)

0 Members and 1 Guest are viewing this topic.

redimp

  • Coppermine newbie
  • Offline Offline
  • Posts: 1
patch: enable non-transparent of watermarks with gd2
« on: November 25, 2006, 01:06:37 pm »

if you you gd2 to put the watermarks in your pictures, the option watermark_transparency is unused. to enable non transparent watermarks, edit file picmgmt.inc.php, line 502

modify
Code: [Select]
imagecolortransparent($logoImage, imagecolorat($logoImage, $CONFIG['watermark_transparency_featherx'], $CONFIG['watermark_transparency_feathery']));
to
Code: [Select]
if ($CONFIG['watermark_transparency']<100)
imagecolortransparent($logoImage, imagecolorat($logoImage, $CONFIG['watermark_transparency_featherx'], $CONFIG['watermark_transparency_feathery']));



btw: the stramm modpack is great!
« Last Edit: December 02, 2006, 08:34:59 pm by Stramm »
Logged

Stramm

  • Moderator
  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Gender: Male
  • Posts: 6006
    • Bettis Wollwelt
Re: patch: enable non-transparent of watermarks with gd2
« Reply #1 on: December 02, 2006, 08:34:04 pm »

thanks, that's a good (necessary) addition
Pages: [1]   Go Up
 

Page created in 0.036 seconds with 19 queries.