[FEATURE] Enable the GIFBUILDER cObject to render 32-bit PNG images
authorGeorg Grossberger <garfieldius67@gmail.com>
Sun, 24 Jul 2011 16:53:10 +0000 (18:53 +0200)
committerJigal van Hemert <jigal@xs4all.nl>
Sun, 31 Jul 2011 15:07:43 +0000 (17:07 +0200)
commit938940117892874aebe19bc92d0138175c9c5953
tree3bb2bba232047892e81a396c192155aba23a13dd
parent9e55c5294cc9b76ac6e0e14ef036a3f5fe3672b6
[FEATURE] Enable the GIFBUILDER cObject to render 32-bit PNG images

Introduce the "backColor" value "transparent" to create a PNG file
that has a transparent color as background and enhance the existing
code to keep it until the final image is written to a file.

If "transparent" is set the following conditions must be met:
* png_truecolor must be set to TRUE
* reduceColors must not be set
* format must not be set to jpg or gif

If one of those conditions is not met, GIFBUILDER falls back to
its default behaviour. Already existing backColor features are not
affected by this change.

The options "transparentBackground" and "transparentColor" have no
effect if the backColor is transparent

Change-Id: I0ce9a891710bbe1e7cae935c765aff2aa5640415
Resolves: #28405
Releases: 4.6
Reviewed-on: http://review.typo3.org/3703
Reviewed-by: Jo Hasenau
Reviewed-by: Georg Ringer
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
Reviewed-by: Jigal van Hemert
Tested-by: Jigal van Hemert
t3lib/class.t3lib_stdgraphic.php
typo3/sysext/cms/tslib/class.tslib_gifbuilder.php