[TYPO3-english] Gifbuilder + PNG transparency

Michel Georgy - 4eyes GmbH michel at 4eyes.ch
Fri Jul 22 15:26:33 CEST 2011


Hey guys, 

I have some troubles with creating a PNG Image with Gifbuilder which has transparent parts. It's not a 0/1 transperency, so 
Gifbuilder creates some ugly black edges instead of a smooth transition from transparent to the object. 

I had no luck with google far.  Below you find the example typoscript. Any help & hint's are very appreciated.  
TYPO3 v4.5.3
IM6
All gfx Tests in Install Tool passed

Regards
michel




lib.test = IMAGE
lib.test {
  file = GIFBUILDER
  file {
    XY = [10.w], [10.h]
    #backColor = #000000
    #transparentColor = #000000
    #transparentColor.closest = 1

    transparentBackground = 1 
    
    10 = IMAGE
    10 {
      file = fileadmin/templates/images/file1.png
    }
   
    20 = TEXT
    20 {
      text.data = test
      text.listNum.splitChar = |
      text.listNum = 0
      fontSize = 18
      fontColor = #000001
      niceText = 1
      antiAlias = 1
      offset = 20, 55
      angle = 8
    }
   
    30 < .20
    30.text.listNum = 1
    30.offset = 20, 75
    30.fontSize = 15
  }
} 


More information about the TYPO3-english mailing list