[TYPO3-english] GIF Builder Transparent background

Tomas Norre Mikkelsen tomasnorre at gmail.com
Wed Nov 18 15:43:04 CET 2009


I know i sound like a newbie, and in some areas i'm...

But where to insert it ??

My TS code is right know like this:

## Graphical h1-text
cHeader = IMAGE
cHeader {
     alttext.cObject = TEXT
     alttext.cObject.field = header
     wrap = <h1> | </h1>
     file = GIFBUILDER
     file {
         format = gif
         reduceColors = 32
         transparentColor = #fffff

         XY = [10.w]+14,[10.h]+10
         backColor = #00605f
     backColor = #000000
         10 = TEXT
         10 {
             text.field = header
             backColor = #000000

             fontSize = 20
             fontColor = #ffffff
             offset = 0,20
             fontFile = fileadmin/templates/fonts/calibri.ttf
             antialias=1
             nicetext=0
             opacity = 100
         }
     }
}

I have tried to most "logic" position.. after backColor in the 10-section,
and in the file-section.

Hope you will help


2009/11/18 Jigal van Hemert <jigal at xs4all.nl>

> Tomas Norre Mikkelsen wrote:
>
>> This gives me a problem with the "backColor = #00605f" option, because is
>> looks like the h1 is inserted in a sqare box, which was not the intension.
>>
>
> You could use
>        transparentBackground = 1
>        transparentColor.closest = 1
> This will make the background transparent (for a GIF image), but the
> anti-aliassing will use your backColor as the color to fade to (like the
> option 'Matte' in Photoshop).
>
> It is on the wishlist for Gifbuilder to be able to produce 32-bit PNG
> files, but at the moment this is not possible AFAIK.
>
> Regards, Jigal.
>
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english
>



-- 
Venlig Hilsen
Tomas Norre Mikkelsen
tomasnorre at gmail.com


More information about the TYPO3-english mailing list