patch: enable non-transparent of watermarks with gd2 patch: enable non-transparent of watermarks with gd2
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

patch: enable non-transparent of watermarks with gd2

Started by redimp, November 25, 2006, 01:06:37 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

redimp

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!

Stramm