[TYPO3-core] RFC: fix bug 6692: When letting TYPO3 generate DB table icons it can happen that transparent areas become rendered black

Ingo Renner ingo at typo3.org
Mon Nov 12 14:26:38 CET 2007


Hi *,

This is an SVN patch request.

Type: Bugfix

Bugtracker references:
http://bugs.typo3.org/view.php?id=6692

Branches:
trunk

Problem:
Please also see the thread mentioned in the notes...

When generating icons for DB tables it might happen that areas that were 
supposed to be transparent might get rendered black.
After some debugging I found out that somehow that black instead of 
transparent background gets generated by PHP/GD's own function 
ImagePng() when called in t3lib_iconWorks::imagecopyresized().

This function get's called the first time to apply the user icon to the 
extension icon. The second time that function get's called to apply the 
little clock icon. When it get's called that second time imagepng() 
turns that transparent background into a black one.

Solution:
use PHP's native imagecopyresized() as in the patch

Notes:
This is a follow up on Benni's "Bugfix for Image Generation in 
t3lib_div" patch

Ingo

-- 
Ingo Renner
TYPO3 Core Developer, Release Manager TYPO3 4.2


More information about the TYPO3-team-core mailing list