Feature #14386
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 #M492)
Updated by Mathias Schreiber about 18 years ago
TYPO3 Version too old.
The reported version is no longer maintained.
If this bug still persists in 4.0.1, please re-open it again and set the field "Product Version" to the corresponding version.