---
title: "csc-textpic-imagewrap: Bildhöhe automatisch als Inlinestyle ausgeben"
url: "https://www.typo3.net/d/111105-csc-textpic-imagewrap-bildhoehe-automatisch-als-inlinestyle-ausgeben"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Bilder","Frage","Inhaltselemente","TYPO3 4"]
created: "2012-06-26"
last_reply: "2012-06-26"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# csc-textpic-imagewrap: Bildhöhe automatisch als Inlinestyle ausgeben

TYPO3 › TypoScript · 1 Antwort · gestartet 2012-06-26

## Eröffnungsbeitrag

**fnord** · 2012-06-26 · [Beitrag #1](https://www.typo3.net/d/111105-csc-textpic-imagewrap-bildhoehe-automatisch-als-inlinestyle-ausgeben/1)

Hallo,

die rounded corners Extension funktioniert nach einem Update auf 4.5 nicht mehr.
Als Alternative will ich das jQuery Plugin verwenden
<http://jquery.malsup.com/corner/image.html>
Funktioniert soweit, nur brauche ich dazu, dass beim umschließende Wrap des Bildes automatisch die Bildhöhe als Inlinestyle mitausgegeben wird.

```php
<div style="width:200px," class="csc-textpic-imagewrap csc-textpic-single-image">
<img width="200" height="200" border="0" alt="" src="typo3temp/pics/img.jpg">
</div>
```

Eine einfache Kopie und Anpassung des width Teils **width:{register:totalwidth}px** funktioniert nicht:

```typoscript
tt_content.image.20.rendering.simple.imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap csc-textpic-single-image" style="width:{register:totalwidth}px;height:{register:totalheight}px;"> | </div>
```

Wer kann helfen? Danke!

## Antworten

### [#2](https://www.typo3.net/d/111105-csc-textpic-imagewrap-bildhoehe-automatisch-als-inlinestyle-ausgeben/2) · fnord · 2012-06-26

Hab die Lösung selbst rausgefunden:

```typoscript
tt_content.image.20.rendering.simple.imageStdWrap.dataWrap = <div class="csc-textpic-imagewrap csc-textpic-single-image" style="width:{register:totalwidth}px;"><div class="roundcorner" style="width:{register:imagewidth}px; height:{register:imageheight}px;"> | </div></div>
```

---

Quelle: „csc-textpic-imagewrap: Bildhöhe automatisch als Inlinestyle ausgeben“, typo3.net, https://www.typo3.net/d/111105-csc-textpic-imagewrap-bildhoehe-automatisch-als-inlinestyle-ausgeben
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
