Project

General

Profile

Actions

Feature #14386

closed

Add coloring capabilities to shadow's mask on GifBuilder

Added by Carlos Chiari about 20 years ago. Updated over 18 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
Backend API
Target version:
-
Start date:
2004-11-13
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

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)


Related issues 1 (0 open1 closed)

Has duplicate TYPO3 Core - Feature #14387: Add coloring capabilities to shadow's mask on GifBuilderClosed2004-11-13

Actions
Actions

Also available in: Atom PDF