---
title: "ausgabe von IMAGE als background-image:"
url: "https://www.typo3.net/d/101151-ausgabe-von-image-als-background-image"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Bilder","Frage"]
created: "2010-09-09"
last_reply: "2010-09-10"
replies: 4
solved: false
page: 1
pages: 1
lang: "de"
---

# ausgabe von IMAGE als background-image:

TYPO3 › TypoScript · 4 Antworten · gestartet 2010-09-09

## Eröffnungsbeitrag

**paxoptimusprime** · 2010-09-09 · [Beitrag #1](https://www.typo3.net/d/101151-ausgabe-von-image-als-background-image/1)

hallo wie kann ich

```typoscript
lib.headbar = IMAGE
lib.headbar.file = GIFBUILDER
lib.headbar.file {
	XY = 512,120
	quality = 80
	format = jpg
	10 = IMAGE
	10.file.import.data = levelmedia:-1,slide
	10.file.import = uploads/media/
	10.file.import.listNum = 1
	10.file.width = 512
	10.file.height = 120
	10.file.offset = 0, 0
}
```

hier das bild auslesen und als css parameter wiedergeben? so dass ich es im umliegenden div als backgrounddatei habe?

## Antworten

### [#2](https://www.typo3.net/d/101151-ausgabe-von-image-als-background-image/2) · igorshmigor · 2010-09-09

Nimm IMG_RESOURCE statt IMAGE.

### [#3](https://www.typo3.net/d/101151-ausgabe-von-image-als-background-image/3) · paxoptimusprime · 2010-09-10

danke... aber wie kriege ich z,B zwischen den div tag noch ein typoscriptobjekt? z.B title

```typoscript
lib.headbar = IMG_RESOURCE
lib.headbar.stdWrap.required=1
lib.headbar.stdWrap.wrap = <div id="header_content" class="clearfix bg1" style="background-image:url(|);"></div>
lib.headbar.file = GIFBUILDER
lib.headbar.file {
	XY = 512,120
	quality = 80
	format = jpg
	10 = IMAGE
	10.file.import.data = levelmedia:-2,slide
	10.file.import = uploads/media/
	10.file.import.listNum = 1
	10.file.width = 512
	10.file.height = 120
	10.file.offset = 0, 0
}
```

### [#4](https://www.typo3.net/d/101151-ausgabe-von-image-als-background-image/4) · igorshmigor · 2010-09-10

Mach ein COA draus

```typoscript
lib.headbar = COA
lib.headbar.10 = IMG_RESOURCE
lib.headbar.10{
   stdWrap.required=1
   stdWrap.wrap = <div id="header_content" class="clearfix bg1" style="background-image:url(|);">
...
}
lib.headbar.20 = SCHMEISSHIERWASREIN
lib.headbar.30 = TEXT
lib.headbar.30.value=</div>
```

### [#5](https://www.typo3.net/d/101151-ausgabe-von-image-als-background-image/5) · paxoptimusprime · 2010-09-10

okay danke jetzt hab ich es gecheckt mit dem splitting

---

Quelle: „ausgabe von IMAGE als background-image:“, typo3.net, https://www.typo3.net/d/101151-ausgabe-von-image-als-background-image
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
