[TYPO3-dev] 4.0beta3 GMENU transparency bug?!?
Bernhard Kraft
kraftb at kraftb.at
Fri Mar 10 15:47:09 CET 2006
Martin Kutschker wrote:
> Bernhard Kraft schrieb:
>
>>
>> I found the solution. But just read my posting here:
>> http://bugs.typo3.org/view.php?id=2692
>
>
> As I read it, it's a workaround: use the darkest colour as transparent
> colour. Which means I cannot have a transparent GIF/PNG with black in it
> (by definition the darkest colour).
>
No. It's no workaround. It's simple - here is some pseudo code:
$im = create_image()
$BackColor = magic_method($im);
foreach ($gifBuilderObj) {
switch ($whatever) {
case 'A':
do_something($im);
break;
case 'B':
write_and_load_the_image($im); // Here $im get's modified in such a way that the value of
// $BackColor (a color index) doesn't stay the same
break;
}
}
make_transparent($im, $BackColor)
So during "B" $im is modified so that $BackColor will not be the one I want transparent.
> Or is "only" the specific setup mentioned in the bug affected? But
> what's the key in it? The IM version, the GD version? I cannot beleive
> that PHP or Apache affect the result.
The last paragraph in the bug-report means that only if those 3 conditions (Setup-conditions - not available
software conditions) are met the error will occur. It guess it's the GD and/or IM version which make this bug happen.
greets,
Bernhard
--
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
More information about the TYPO3-dev
mailing list