[TYPO3-dev] Path to cached/temp Imagefile

Bernhard Kraft kraftb at kraftb.at
Thu May 18 19:39:21 CEST 2006


Andreas Wengrzik wrote:

First of all this is wrong:

$conf = array(
      "file" => "fileadmin/gallery/image1.jpg",
       "width" => "200",
);

it should be:

$conf = array(
      "file" => "fileadmin/gallery/image1.jpg",
      "file." => array(
		"width" => "200",
	);
);

( Here : http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/8/6/
is no word of "width" and "height" ... those properties are part of the imgResource "file" :
http://typo3.org/documentation/document-library/references/doc_core_tsref/current/view/5/2/ )


And instead of this:

> $imgTag = $this->cObj->IMAGE($conf);

Rather do:

$info = $this->getImgResource($filename,$conf['file.']);


It will return an array with the name of the temporary scaled down image + sizes

Just print_r($info) :)

greets,
Bernhard
-- 
----------------------------------------------------------------------
"Freiheit ist immer auch die Freiheit des Andersdenkenden"
Rosa Luxemburg, 1871 - 1919
----------------------------------------------------------------------
[[ http://think-open.at | Open source company ]]




More information about the TYPO3-dev mailing list