[TYPO3-german] Vorschaubilder beschneiden

Peter Kühnlein peter at function2form.net
Mon Mar 2 22:40:03 CET 2015


Am 02.03.2015 um 22:05 schrieb Kristina Drömmer:
> Hallo zusammen,
>
> Ich habe eine Seite mit einigen Fotos, die, wenn man drauf klickt, 
> vergrößert in einer Fancybox angezeigt werden. Nun sind aber manche 
> dieser Fotos hochkant, manche quer.. Deshalb setzen sie sich nicht 
> schön neben- bzw. untereinander.
> Bekomme es aber nicht hin alle automatisch auf die gleiche Größe zu 
> schneiden. So, dass halt nur ein Ausschnitt angezeigt wird.
>
> Habe es mit diesem Typoscript versucht:
> tt_content.image.20.1.file.width = 120c
> tt_content.image.20.1.file.height = 120
>
> Habe aber keine Ahnung wieso es nicht funktioniert, ich arbeite nicht 
> so viel mit Typo 3 :/
>
> Danke im Voraus!
> LG und schönen Abend :)
> _______________________________________________
> TYPO3-german mailing list
> TYPO3-german at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-german
Hallo Kristina,

also ich habe dieses Typoscript als EXT-Template auf einer Installation 
(6.2.9) am Laufen und das funktioniert:

tt.content.image.20.1.maxH >
tt.content.image.20.1.maxW >
tt.content.image.20.1.maxH = 265
tt.content.image.20.1.maxW = 200
tt_content.image.20.1.file.width >
tt_content.image.20.1.file.width = 200c-0
tt_content.image.20.1.file.height >
tt_content.image.20.1.file.height = 265c-0
tt_content.image.20.equalH >
tt_content.image.20.equalW >

D.h., die Bilder werden auf 200px Breite und 265px Höhe verkleinert und 
gestutzt. Und zwar nur auf der Seite, auf der das EXT-Template 
eingebunden ist.

LG Peter

-- 

http://function2form.net
http://peter-kuehnlein.net

"Being a retainer is nothing other than being a supporter of one's lord, entrusting matters of good and evil to him, and renouncing self-interest. If there are but two or three men of this type, the fief will be secure."
(Hagakure)



More information about the TYPO3-german mailing list