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

Rudy Gnodde (WIND Internet) rgn at windinternet.nl
Thu Oct 22 10:34:17 CEST 2009


Hello Bernhard,

Bernhard Kraft wrote:
> I am not absolutely sure. Back in 2005 I did a lot of changes to the
> GIFBUILDER / t3lib_stdGraphic, (I introduced the png_truecolor flag) But
> AFAIR it is not possible to create alpha-layer images using the GIFBUILDER.
> 
> There is only 0/1 transparency.
> 
> I guess what you would like to achieve, is to add the mask-image as
> alpha channel for the specified "file". But in face the "mask option
> works different:
> 
> When you have an image in your gifbuilder-object. probably defined by
> 5 = IMAGE
> in your case, then the GIFBUILDER file/mask options "overlays" the
> specified file over the "current" one, using the "mask" file as
> overlay-information.
> 
> so this is rather only useful for overlaying one image over another
> using a specified mask - and not for setting the alpha-layer of a png file.
> 
> I guess best solution to accomplish this, would be to create your own
> little extension, using imageMagick to accomplish this task.

That's what I thought, but I was hoping I was wrong. It shouldn't be too 
much trouble to make it myself, but it would have been easier if it was 
already there. Thanks for your answer.

Regards,

Rudy


More information about the TYPO3-english mailing list