[TYPO3-project-formidable] renderlet:IMAGE Define max width inside imageconf
Manuel Rego Casasnovas
mrego at igalia.com
Tue Dec 23 12:48:28 CET 2008
Hello,
I'm trying to define a maximum width in a renderlet:IMAGE.
The expected behaviour should be if an image is bigger than 300px then
the image is resized, but if the image is lower than 300px (for example
a 100px image) it's NOT resized and it's showed in its normal size.
So, I've tried the next configuration:
<imageconf>
<userobj>
<ts><![CDATA[
10 <
config.tx_ameosformidable.res.shared.xml.imageprocess.normal
10.file < params.relwebpath
10.file.width = 300px
]]></ts>
</userobj>
</imageconf>
And I also tried:
10.file.width = 300m
and:
10.file.maxWidth = 300px
even:
10 < config.tx_ameosformidable.res.shared.xml.imageprocess.maxwh
10.file < params.relwebpath
10.file.maxW = 300px
And nothing works as I'd like. I like to define a maximum not a specific
size for all the images.
¿Any idea? I guess that exists any TypoScript option to do that, but I
can't find it.
Best regards,
Rego
--
Manuel Rego Casasnovas
Computer Science Engineer
mailto:mrego at igalia.com
Tel: +34 986 10 76 10
Fax: +34 981 91 39 49
Igalia - http://www.igalia.com
More information about the TYPO3-project-formidable
mailing list