Feature #14387
closedAdd coloring capabilities to shadow's mask on GifBuilder
0%
Description
Line 1268 on class.t3lib_stdgraphic.php hardcode the color of the mask being used by the makeShadow( ) function to black background:
Line 1268:
---------------
ImageColorAllocate($blurTextImg, 0,0,0); // black background
When the page background is not solid, for example with background images, an ugly white halo can be seen around the shadow, when the image has been set to transparent background.
If this could be set through typoscript, we could then play with mask colors until a better colored halo is produced.
When this background color of the mask is set to a complementary color of the perceived average color of the background image, then the halo would not be noticed, allowing the nice shadow effect on gifbuilder texts.
A fix could be to add a property to the gifbuilder Shadow object:
if named, for example "blurmaskcolor", it could be used like this:
(Modification)
New Line 1268
--------------------
$blurmaskcolor=$this->convertColor($conf['blurmaskcolor']);
ImageColorAllocate($blurTextImg,$blurmaskcolor0,$blurmaskcolor1,$blurmaskcolor2);
Then, at typoscript, it could be used normally as the other shadow parameters.
(issue imported from #M493)