[TYPO3-dev] how to call image function (imagemagick) from extension php

Mathias Schreiber [TYPO3] mathias at typo3.org
Wed Mar 14 15:30:56 CET 2007


Andrew Davis schrieb:
> ? Any suggestions where to look?

Jup, in the english mailing list.
This list of about developing TYPO3, not developing UTILIZING TYPO3.

> Any help much apreciated.

The code line you are looking for is this:
$myImage = $this->cObj->cObjGetSingle('IMAGE',$imgConf);

$imgConf is a PHP array that looks like Typoscript.
$imgConf['file'] = 'fileadmin/tsbyex/alligator.jpg';
$imgConf['file.']['width'] = 200;

Notice the . after the array key "file" in line 2.

peace
Mattes




More information about the TYPO3-dev mailing list