[TYPO3-english] tt_news: force image size

Rupert Germann rupi at gmx.li
Fri Jun 5 21:40:36 CEST 2009


Tommy Bergeron wrote:
> I would like to be able to force typo3 to make my image to a certain size.
> 
> For now, it resizes to a certain size maintaining a certain ratio. But I
> want it to tell my image: hey do width="100" height="100"!!!! (100 isn't
> the real size)
> 
> It would be so nice to be able to do so.

no problem.
simply use width and height instead of maxW and maxH in TS.
even crop should be supported:

    125.displayLatest.image {
      file.maxW = 
      file.maxH = 
      file.width = 100c
      file.height = 100c
    }



greets
rupert



More information about the TYPO3-english mailing list