Project

General

Profile

Actions

Bug #32781

closed

transparent backColor causes transparent flicks and black background

Added by Georg Großberger over 12 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2011-12-22
Due date:
% Done:

100%

Estimated time:
TYPO3 Version:
4.6
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

The backColor = transparent feature is a little unstable, for two reasons:
  1. It may creates wrong transparent areas. That is because of the imagealphablending setting, which should not be there.
  2. It creates black backgrounds, when using an image object inside the GIFBUILDER, because the core sets the t3lib_stdgraphic::imagecopyresized_fix property to true by default.
    Attached is a patch which resolves those issues.

Before pushing it to Gerrit, I'd like to know if the approach of fixing the second issue is correct, or should be done differently.

With this approach, the imagecopyresized_fix is overruled by the saveAlphaLayer property inside the t3lib_stdgraphic::imagecopyresized method. Since this approach is kind of obsolete, I see no problem with it. Backwards compatibility is is given, simply because upraded installations will have the saveAlphaLayer property set to false anyway.

Target Version: 4.6 and 4.7


Files

transparent-backColor-fixes.diff (2.54 KB) transparent-backColor-fixes.diff Georg Großberger, 2011-12-22 13:18
transparent-backColor-fixes.diff (2.37 KB) transparent-backColor-fixes.diff Georg Großberger, 2011-12-22 13:22
demo.tar.gz (19 KB) demo.tar.gz Georg Großberger, 2011-12-25 18:09
Actions

Also available in: Atom PDF