forum.coppermine-gallery.net

Support => cpg1.4.x Support => Older/other versions => cpg1.4 modpack by Stramm => Topic started by: redimp on November 25, 2006, 01:06:37 pm

Title: patch: enable non-transparent of watermarks with gd2
Post by: redimp 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!
Title: Re: patch: enable non-transparent of watermarks with gd2
Post by: Stramm on December 02, 2006, 08:34:04 pm
thanks, that's a good (necessary) addition