[TYPO3-core] RFC: #15184 Generation transparent images with GMENU fails

Susanne Moog typo3 at susannemoog.de
Wed Nov 3 08:34:01 CET 2010


On 02.11.2010 16:48, Mathias Schreiber [wmdb >] wrote:
> This is an SVN patch request.
> 
> Type: Bugfix
> 
> Bugtracker references: http://bugs.typo3.org/view.php?id=15184
> 
> Branches: trunk, 4.4
> 
> Problem:
> using transparentBackground in GIFBUILDER fails (the bugtracker entry
> refers to GMENUs, but basically all GIFBUILDER tasks are affected).
> This is more like a follow up to Benni's changes in stdGraphic to
> internally work with truecolor images (which is a good thing).
> 
> Solution:
> Attached patch solves these problems.
> 
> PHP function imageColorExact only works with images that use palettes.
> Truecolor images don't do this by concept.
> PHP offers another function that does basically the same on non-palette
> images: imageColorClosest.
> 
> Steps to reproduce:
> temp.headline = COA
> temp.headline {
>   10 = IMAGE
>   10.file = GIFBUILDER
>   10.file {
>     XY = 200,100
>     backColor = #FF00FF
>     #transparentColor = #FF00FF
>     #transparentColor.closest = 1
>     transparentBackground = 1
>     10 = TEXT
>     10.text = Hallo Welt.......
>     10.offset = 26,30
>     10.fontSize = 30
>     10.niceText = 1
>   }
> }
> 
> Note: The two commented lines will make it work without the patch, but
> work against std. behaviour AND the docs.

+1 by reading and testing. Nice to see such an easy solution to a
seemingly big problem.

Susanne



-- 
What's worth the price is always worth the fight
Every second counts 'cause there's no second try

TYPO3 Core Team Member


More information about the TYPO3-team-core mailing list