Am Wed, 29 Apr 2009 15:13:31 +0200 schrieb Christian Wolff:

> dazu setzt du im install too die option
> 
> gdlib_png=1
> png_truecolor=1
> 
Ich würde mich gerade mal dranhängen, da mich die gleich frage beschäftigt.
In einer Klasse muss ich ein Bild drehen und die grösse anpassen, das mache
ich mit dem Gifbuilder. Die Bilder sind allerdings transparente PNGs. Der
Guifbuilder macht da eine kleine Schwarze Linie drumherum...

Wie kann ich jetzt im Gifbuilder sagen das er PNG nehmen soll zur
Berechnung? Lediglich durch das obere? Das ist im Installtool so gesetzt...

        $data = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res);
        
        $data['grundrissbild'] ? $image =
'uploads/tx_xxx/'.$data['grundrissbild'] : $image =
'fileadmin/templates/images/platzhalter_grundriss.png'; 
        $maxW = 400;
        $maxH = 0;
        $lConf['imageThumb.']['file'] = $image;
        $lConf['imageThumb.']['file.']['maxW'] = $maxW;
        $lConf['imageThumb.']['file.']['maxH'] = $maxH;
        $thumb = $localCObj->IMG_RESOURCE($lConf['imageThumb.']); 

        $size = getimagesize($thumb);

        $lConf['image.']['file'] = 'GIFBUILDER';
        $lConf['image.']['file.']['XY'] = ''.$size[0].','.$size[1].'';
        $lConf['image.']['file.']['backColor'] = '#000000';
        $lConf['image.']['file.']['transparentColor'] = '#000000';
        $lConf['image.']['file.']['transparentBackground'] = 1;
        $lConf['image.']['file.']['5'] = 'IMAGE';
        $lConf['image.']['file.']['5.']['file'] = $thumb;
        $lConf['image.']['file.']['maxWidth'] = $maxW;
        $lConf['image.']['file.']['maxHeight'] = $maxH;
        $lConf['image.']['file.']['10'] = 'EFFECT';
        $lConf['image.']['file.']['10.']['value'] = "rotate=270";
                                        
        $image = $localCObj->IMAGE($lConf['image.']); 
        $content = $image;      

        return $content;        



> 
> gruss chris

Gruß zurück :-)
_______________________________________________
TYPO3-german mailing list
TYPO3-german@lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-german

Antwort per Email an