[TYPO3-dev] 4.0beta3 GMENU transparency bug?!?

Bernhard Kraft kraftb at kraftb.at
Thu Mar 9 03:33:34 CET 2006


Joerg Wagner - DigiLog multimedia wrote:
> I filed a bug with detailed description for this problem now ( 
> http://bugs.typo3.org/view.php?id=2692 ).
> BTW: Christopher is not running on windows but on Fedora Core.
> 
> --
> Jörg Wagner
> DigiLog multimedia
> 

Hello,


This bug seems to be fixed :) I hope at least.


See the attached diff at those two bugnotes:

http://bugs.typo3.org/view.php?id=2692
http://bugs.typo3.org/view.php?id=2702


The problem was that when you set #ffffff as backgroundColor for your image this was the very first assigned color and got index "0" ... When setting the transparent color I did a check
if ($Tcolor) {
which of course failed for a color index of "0" (I just read up that imageColorExact which returns the index of a color in an image returns -1 if it fails - I fixed that in the patch attached to this bug note)


I also changed some code which disables truecolor completly if .gif or non-truecolor .png's are going to get generated and transparency get's used.
Real-life examples showed that in most cases transparency didn't work properly there because those images got color reduced at the end and then transparency got lost.
Also when reduceColors get's used and transparency together then truecolor get's disabled.


greets,
Bernhard




More information about the TYPO3-dev mailing list