[TYPO3-english] Alpha transparent PNG with GIFBUILDER and masks

Rudy Gnodde rgn at windinternet.nl
Mon Oct 19 22:13:36 CEST 2009


Hello everyone,

I am trying to create an image using GIFBUILDER in TypoScript which 
should output as 24-bit PNG with alpha transparency. The TypoScript code 
I'm using is:

lib.image = IMAGE
lib.image {
   file = GIFBUILDER
   file {
     XY = 180, 120
     format = png
     transparentBackground = 1
     10 = IMAGE
     10 {
       file = fileadmin/testimages/test180x120.jpg
       mask = fileadmin/overlays/photo180x120.png
     }
   }
}

This outputs a 24-bit PNG with transparency, but no alpha transparency. 
The color set at pixel 0,0 is set as transparent. This is what 
transparentBackground does according to the manual, so no surprise there 
really, but not the result I want.

Other configurations that might be useful to know are:
[GFX][gdlib_png] = 1
[GFX][gdlib_2] = 1
[GFX][im_version_5] = gm
[GFX][im_mask_temp_ext_gif] = 0
[GFX][png_truecolor] = 1

So basically my question is: Is it possible to create alpha transparent 
PNGs this way? And if so, how?

Regards,

Rudy


More information about the TYPO3-english mailing list