[TYPO3-core] RFC #14602: feature: PNG with alpha transparency

Jigal van Hemert jigal at xs4all.nl
Sun Jul 25 23:54:19 CEST 2010


Hi,

This is a SVN patch request.

Type: Feature

BT reference: http://bugs.typo3.org/view.php?id=14602

Branches: trunk

Problem:
It's not possible to make GIFBUILDER images with a PNG alphachannel

Solution:
Add an option to create images with transparency.

How to test:
Make sure that the following conditions are met:
- TS: transparentBackground = 0
- TS: transparentColor is not set
- TS: reduceColors is not set
- Install tool: ['GFX']['png_truecolor'] = 1

Create a GIFBUILDER image with transparency:
10 = IMAGE
10 {
     wrap = <div style="background: #ddd;"> | </div>
     file = GIFBUILDER
     file {
         XY = 100,99
         format = png
         alphaChannel = 1
         5 = BOX
         5 {
             dimensions = 50,10,50,50
             color = yellow
             opacity = 20
         }
         10 = TEXT
         10 {
             text = TESTimg
             fontSize = 24
             offset = 10,40
             fontColor = red
         }
     }
}

This creates an image with transparent background, a semi-transparent 
yellow box and on top red text. The grey CSS background of the div shows 
the transparency of the PNG image.

-- 
Jigal van Hemert
skype:jigal.van.hemert
msn: jigal at xs4all.nl
http://twitter.com/jigalvh


More information about the TYPO3-team-core mailing list