|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi!
I want to generate 24 bit pngs (including alpha channel) with GIFBUILDER. I need to render text on top of an existing 24 bit png, but I couldn't get it to work. No matter what I do, the result is a 24 bit png, but it has just one transparent color. I set these options in install tool: [GFX][gdlib_png] = 1 [GFX][png_truecolor] = 1 Thats the Test Typoscript: temp.testAlpha = IMAGE temp.testAlpha.file = GIFBUILDER temp.testAlpha.file { transparentBackground = 1 XY = 181,40 5 = IMAGE 5.file = fileadmin/img/background.png // has an alpha channel already 10 = TEXT 10.text.data = leveltitle: 2 10.text.case = upper 10.fontFile = fileadmin/fonts/gil.normal.ttf 10.fontColor = #333333 10.fontSize = 12 10.niceText = 1 10.offset = 15,25 } I tried to use IM 6.1.8 and GM 1.1.6, both show the same result. GDLib version is 2.0.36. TSRef says, that transparentBackground determines the color on the 0/0 pixel and takes it as the transparent color, is there a way to keep the whole alpha channel for the output image? I read about imagesavealpha() and imagealphablending(), which I tried to hack into class.t3lib_stdgraphic.php, but still it didnt work. Searched everywhere for advice, but couldn't find a working solution! Can anybody help, please? Thanks Franz _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Franz Josef wrote:
> Hi! > > I want to generate 24 bit pngs (including alpha channel) with GIFBUILDER. > > I need to render text on top of an existing 24 bit png, but I couldn't > get it to work. No matter what I do, the result is a 24 bit png, but it > has just one transparent color. > > I set these options in install tool: > > [GFX][gdlib_png] = 1 > [GFX][png_truecolor] = 1 > > Thats the Test Typoscript: > > temp.testAlpha = IMAGE > temp.testAlpha.file = GIFBUILDER > temp.testAlpha.file { > transparentBackground = 1 > XY = 181,40 > 5 = IMAGE > 5.file = fileadmin/img/background.png // has an alpha channel already > 10 = TEXT > 10.text.data = leveltitle: 2 > 10.text.case = upper > 10.fontFile = fileadmin/fonts/gil.normal.ttf > 10.fontColor = #333333 > 10.fontSize = 12 > 10.niceText = 1 > 10.offset = 15,25 > } > > I tried to use IM 6.1.8 and GM 1.1.6, both show the same result. GDLib > version is 2.0.36. > > TSRef says, that transparentBackground determines the color on the 0/0 > pixel and takes it as the transparent color, is there a way to keep the > whole alpha channel for the output image? > > I read about imagesavealpha() and imagealphablending(), which I tried to > hack into class.t3lib_stdgraphic.php, but still it didnt work. > > Searched everywhere for advice, but couldn't find a working solution! > Can anybody help, please? > > Thanks > > Franz gdlib is 2.0.32 ![]() _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3-announce] TYPO3 4.2 Alpha 1 | Ingo Renner | typo3-announce@lists.netfielders.de | 0 | 07.09.2007 18:08 |
| [TYPO3] Size of IM-output | Niels Fröhling | typo3-english@lists.netfielders.de | 0 | 30.05.2007 10:02 |
| [TYPO3-dev] USER_INT doesn't output | Matthias Stuebner | typo3-dev@lists.netfielders.de | 6 | 19.05.2007 11:20 |
| [TYPO3] dont't cache output of ext | Felix Natter | typo3-english@lists.netfielders.de | 1 | 31.03.2007 11:49 |
| [TYPO3] Flexform: unwanted output DEF: | Matthias Stuebner | typo3-english@lists.netfielders.de | 1 | 30.03.2007 13:58 |