[TYPO3] Re sizing images in an extension

bernd wilke xoonsji02 at sneakemail.com
Mon Jun 23 23:44:35 CEST 2008


on Mon, 23 Jun 2008 11:22:06 -0700, StephenBungert wrote:

> I have an extension that I'm writing that display's images. I want to
> use TYPO3's ability to resize images to display them smaller than they
> are, but so that they still look ok.
> 
> I have discovered from looking at other extensions and from the mailing
> list that you can do this:
> 
> $imgConf['file'] = 'uploads/tx_sbportfolio/' . $imageName;
> 
> $imgOutput = $this->cObj->IMAGE($imgConf);
> 
> I can see the image on my website, but at its full size. How can I
> resize it? I saw in the tsref that the IMAGE object has a params
> property, I tried setting this, things like hspace worked, but width and
> height didn't.
> 
> How then do I resize the image?

remember the structure typoscript is translated in an array and then 
insert the correct typoscript in it.
just an example: http://www.pi-phi.de/t3v4/rendering.html#c77

bernd
-- 
http://www.pi-phi.de/t3v4/cheatsheet.html


More information about the TYPO3-english mailing list