[TYPO3] IMAGE returns NULL

Toke Herkild th at concare.net
Fri Nov 10 10:40:43 CET 2006


Hi Korben, and Whoever else looking for this info, 

Verify the image_path... If the path points to a none existing file the function returns NULL, 

Maybe it would be an Idea to ad theese return values:
errNOFILE: file does not exist,
errNULL: could not do image manipulation,

Or something like that...

Mvh
Toke

-----Oprindelig meddelelse-----
Fra: typo3-english-bounces at lists.netfielders.de [mailto:typo3-english-bounces at lists.netfielders.de] På vegne af Tyler Kraft
Sendt: 1. november 2006 17:12
Til: typo3-english at lists.netfielders.de
Emne: Re: [TYPO3] IMAGE returns NULL

Hi Korben...

Just one small question - Whats your real name?

  I only ask as we tend to like to talk to real people on this list and it almost seems like you've "borrowed" your name form the movie "The Fifth Element"

Tyler


Korben Dallas wrote:
> Hi folks,
> 
> I'm new to typo and to this list, and I'm a bit confused...
> 
> I'm trying to output an image from an FE plugin's class (the extension 
> was created using the kickstarter). As demonstrated in the nice video 
> made by Kasper S. (fepi_05_rendering_the_image.wmv):
> 
>     01 $imgConf = $this->conf["myImageConf."];
>     02 $imgConf['file'] = "uploads/tx_myext/myimage.gif";
>     03 return $this->cObj->IMAGE($imgConf);
> 
> If I understand it correctly, [01] is optional, it just loads
> *additional* configuration and may be omitted. Is that so? (At least 
> it looks like it in the video.)
> 
> However, [03] returns NULL. The "myimage.gif" file does exist, I tried 
> both absolute and relative paths, and if I replace
> 
>     03 return $this->cObj->IMAGE($imgConf);
> 
> with
> 
>     03 return "blah blah blah";
> 
> this "blah blah blah" does appear in the frontend.
>     
> What am I doing wrong? Do I have to enable anything or something?
> 
> Thanks in advance for your help.
>  
> Cheers,
> Korben
> 
_______________________________________________
TYPO3-english mailing list
TYPO3-english at lists.netfielders.de
http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



More information about the TYPO3-english mailing list