[TYPO3] keep image ratio when resizing

Johannes Reichardt typo3 at gramba.de
Fri Apr 21 19:34:09 CEST 2006


Hi Christoph,

i use this:

        $this->conf['image.']['file.']['maxW'] = 50;
        $this->conf['image.']['file.']['maxH'] = 26;

basically maxH and maxW - this makes it in ratio also. Very neat to use.

- Johannes
> Hey guys,
>
> I am creating some thumbnails of images via TS, and I need the image to be  
> 80x80. Now, I can set the width and height okay, but sometimes the picture  
> is squished. How can I keep the ration of the pic when it's resized?
>
> Thanks!
>
> Christoph
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>   




More information about the TYPO3-english mailing list