[TYPO3-dev] Using the t3lib_stdgraphic class to combine multiple images and send by email

Brian Bendtsen bb at bellevuevej.dk
Thu May 6 22:57:20 CEST 2010


Benjamin Mack skrev:
> Hey Brian,
> 
> I'd start looking in EXT:cms/tslib/class.tslib_content.php, and look for 
> a method called "imgResource", that's a more high-level function, and 
> there should be a filename as a parameter there.
> 
> All the best
> Benni.
Hi

I actually started with this class but since I don't invoke the FE it 
won't work?

Just in case I tried a small example:

$fileArray = array();
$fileArray['XY'] = '300,400';
$fileArray['5'] = 'BOX';
$fileArray['5.']['dimensions'] = '100,100';
$fileArray['5.']['color'] = '#cccccc';
				
$empImg = $this->cObj->getImgResource('GIFBUILDER', $fileArray);

But I get this error

Fatal error: Call to a member function getFileName() on a non-object in 
/typo3/sysext/cms/tslib/class.tslib_content.php  on line 5451

/BB




More information about the TYPO3-dev mailing list