coppermine-gallery.com/forum

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
imagecolortransparent($logoImage, imagecolorat($logoImage, $CONFIG['watermark_transparency_featherx'], $CONFIG['watermark_transparency_feathery']));

to
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