[TYPO3-english] Typoscript if => maxW cropped.

Koen Van Nuffelen koen_typo3 at obiwebs.be
Wed Feb 2 12:25:30 CET 2011


Hi,

I'm searching for the following solution in Typoscript:

I can set the minW & maxW and maxH for an image, which is fairly easy:

10 = IMAGE
10.file.import = uploads/tx_templavoila/
10.file.import.current = 1
10.file.import.listNum = 0
10.file.minH = 120
10.file.maxH = 120
10.file.maxW = 180

The more difficult (if it's even possible with typoscript) part is this:
After the resize to maxH,
I want to do a check if the image width is still above 180
and if yes then crop the width to 180 (180c)

Is this possible in Typoscript and if so, how to solve?
Any hints or tips?

Kind regards,
Koen Van Nuffelen



More information about the TYPO3-english mailing list