[TYPO3-english] Image processing from typo3temp/ folder

PIT Solutions typo3 at pitsolutions.com
Mon Nov 11 10:31:29 CET 2013


Hi,

Thanks for your hints.

Yes its worked with "$this->cObj->IMAGE($imconf);" code.
I've changed my code like this;

$imgTSConfig = array();
$imgTSConfig['file'] = fileadmin/templates/images/test.jpg;
$imgTSConfig['file.']['width'] = 100 . 'm';
$imgTSConfig['file.']['height'] = 100 . 'm';

return $this->cObj->IMAGE($imgTSConfig);


Thanks a lot..:)

With Regards,
Arun Chandran

Software Engineer
PIT Solutions Pvt Ltd.

________________________________
 From: Jan Bednarik <info at bednarik.org>
To: typo3-english at lists.typo3.org 
Sent: Monday, November 11, 2013 1:43 AM
Subject: Re: [TYPO3-english] Image processing from typo3temp/ folder
 

Hi,

> But my problem is, I need to load images from typo3temp folder.
> > When using <f:img> in fluid template, its rendered from typo3temp folder. But when I use <img> tag its not from there.
> This is a pibase extension and we can't use <f:img>.

if it's PI extension, then you should use cObj:

$imconf = Array('file'=>'fileadmin/images/whatever.jpg','file.'=>Array('maxW'=>100));
$imcode = $this->cObj->IMAGE($imconf);
echo $imcode; // <img src="typo3temp/...">

Jan

_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english


More information about the TYPO3-english mailing list