Discussion:
[TYPO3] GIFBUILDER with transparent background
Xavier Perseguers
2008-07-10 11:59:18 UTC
Permalink
Hello,

Does someone succeeded in creating an image (PNG) that is fully
transparent (alpha channel) and put a text on it with any color?

I used this code

lib.banner = IMAGE
lib.banner {
file = GIFBUILDER
file {
XY = [10.w],[10.h]
format = png
backColor = #000000
transparentColor = #000000

10 = TEXT
10 {
text = Hello World
fontColor = #ffffff
offset = 0,30
fontSize = 40
}
}
}

But as it has no alpha channel but an indexed transparent color, I still
see some black (in fact really dark grey) points around the letters.
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
Xavier Perseguers
2008-07-10 13:45:54 UTC
Permalink
Post by Xavier Perseguers
Hello,
Does someone succeeded in creating an image (PNG) that is fully
transparent (alpha channel) and put a text on it with any color?
But as it has no alpha channel but an indexed transparent color, I still
see some black (in fact really dark grey) points around the letters.
I finally used a background/transparent color that is in the
neighborhood of the "real" background and it's OK. Thus it remains only
as "Just to know" :-)
--
Xavier Perseguers
http://xavier.perseguers.ch/en/tutorials/typo3.html
Loading...