[TYPO3-dev] A problem using image manipulation in my own class file

Tapio Markula tapio.markula at xetpoint.fi
Wed Nov 19 13:11:43 CET 2008


Martin Kutschker
> $myStuff = new returnContent();
> $myStuff->main();

tested that too

require_once ( PATH_site . 't3lib/class.t3lib_stdgraphic.php' );
$myStuff = new t3lib_stdGraphic();
$myStuff->init();
class myGraphic { 	
	function main() {
		global $BE_USER,$LANG,$typo3GET,$content,$myStuff;
...
$imageFile= PATH_site .'uploads/pics/'.$content['image'];
if(is_file($imageFile)) {
$imageFile=$myStuff->imageMagickConvert($imageFile,'jpg','270','','','','',1); 
t3lib_div::debug($imageFile);
...

and
	

require_once ( PATH_site . 't3lib/class.t3lib_stdgraphic.php' );
class myGraphic { 	
	function main() {
		global $BE_USER,$LANG,$typo3GET,$content,$myStuff;
		$graphObj = t3lib_div::makeInstance('t3lib_stdGraphic');
		$graphObj->init();
...

$imageFile= PATH_site .'uploads/pics/'.$content['image'];
if(is_file($imageFile)) {
$imageFile=$graphObj->imageMagickConvert($imageFile,'jpg','270','','','','',1); 
t3lib_div::debug($imageFile);
...

result - no image will be created - got 'debug' from the debug function
even if the input image really exists.




More information about the TYPO3-dev mailing list