---
title: "bild aus plugin mit schatten darstellen (transparenz-problem im zusammenhang mit blur-effekt)"
url: "https://www.typo3.net/d/97320-bild-aus-plugin-mit-schatten-darstellen-transparenz-problem-im-zusammenhang-mit-blur-effekt"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Bilder","Frage","PHP"]
created: "2010-03-08"
last_reply: "2010-03-08"
replies: 0
solved: false
page: 1
pages: 1
lang: "de"
---

# bild aus plugin mit schatten darstellen (transparenz-problem im zusammenhang mit blur-effekt)

Extensions › Entwicklung · 0 Antworten · gestartet 2010-03-08

## Eröffnungsbeitrag

**mudvayne** · 2010-03-08 · [Beitrag #1](https://www.typo3.net/d/97320-bild-aus-plugin-mit-schatten-darstellen-transparenz-problem-im-zusammenhang-mit-blur-effekt/1)

Hallo zusammen!

Habe folgendes Problem:
Ich versuche Bilder aus meiner Extension automatisch mit einem Schatten darzustellen.
Dies funktioniert, jedoch habe ich Probleme mit der Transparenz.

Dies ist mein Code zur erstellung des Schatten (das richtige Bild lege ich später über den Schatten):

```php
//erstelle das bild-grundgeruest (groesse,typ, bg-color)
$vorschau_bild["file"] = "GIFBUILDER"; 			
$vorschau_bild["file."]["backColor"] = $background_color;
$vorschau_bild["file."]["quality"] = "100";
$vorschau_bild["file."]["XY"] = "$vorschau_bild_total_width, $vorschau_bild_total_height";
$vorschau_bild["file."]["format"] = "gif"; //$datei_typ 
$vorschau_bild["file."]["transparentBackground"] = "1";
$vorschau_bild["file."]["transparentColor"] = $background_color;
			
//erstelle ein box
$vorschau_bild["file."]["20"] = "BOX";
$vorschau_bild["file."]["20."]["dimensions"] = "$shadow_width,$shadow_height,$vorschau_bild_width, $vorschau_bild_height";
$vorschau_bild["file."]["20."]["color"] = $shadow_color;
			
//fuege der box eine blur-effekt hinzu
$vorschau_bild["file."]["30"] = "EFFECT";
$vorschau_bild["file."]["30."]["value"] = "blur=".$shadow_blur." |";
```

[Bild: img408.imageshack.us/…/blurtransparenz.jpg](http://img408.imageshack.us/i/blurtransparenz.jpg/)

Also:
Bild 1:
ohne
   $vorschau_bild["file."]["transparentBackground"] = "1";
   $vorschau_bild["file."]["transparentColor"] = $background_color;
und ohne
   $vorschau_bild["file."]["30"] = "EFFECT";
   $vorschau_bild["file."]["30."]["value"] = "blur=".$shadow_blur." |";

Bild 2:
ohne
   $vorschau_bild["file."]["30"] = "EFFECT";
   $vorschau_bild["file."]["30."]["value"] = "blur=".$shadow_blur." |";

Bild 3:
Dies ist die Ausgabe wenn nichts auskommentiert ist.
Die Background-Color wird nun dort angezeigt wo der Blur-Effekt vorhanden ist.

Gibt es nun eine Möglichkeit dass die Hintergrundfarbe(Blau) auch in Bild Nr. 3 transparent dargestellt wird?

Vielen Dank im Voraus!

Grüsse
mudvayne

---

Quelle: „bild aus plugin mit schatten darstellen (transparenz-problem im zusammenhang mit blur-effekt)“, typo3.net, https://www.typo3.net/d/97320-bild-aus-plugin-mit-schatten-darstellen-transparenz-problem-im-zusammenhang-mit-blur-effekt
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
