Zum Inhalt springen

Bildgröße (height, width) ermitteln

Erstellt am 27. Oktober 2009 · 2 Antworten · letzte Antwort am 28. Oktober 2009

Tags: Frage

moritz ·

Hallo Forum,

hat eventuell jemand von euch eine zündende Idee, wie ich die Größe (Höhe, Breite) eines Bildes ermitteln kann?

*grübel*

Ahoi MArc

Julian.​Hofmann ·

Hallo marc.

10 = IMAGE
10.file = fileadmin/images/testimage.jpg
10.wrap = |<br />

20 = TEXT
20.data = TSFE:lastImageInfo|0
20.wrap = The width of the above image=|<br />

30 = TEXT
30.data = TSFE:lastImageInfo|1
30.wrap = The height of the above image=|<br />

40 = TEXT
40.data = TSFE:lastImageInfo|2
40.wrap = The type of the above image=|<br />

50 = TEXT
50.data = TSFE:lastImageInfo|3
50.wrap = The url of the above image=|<br />
}
page.123 < lib.imageInfo

Quelle: http://www.typo3wizard.com/de/snippets/cool-stuff-typoscript/more-fun-with-tsfe-bildinformationen-auslesen.html

Viele Grüße
Julian