[TYPO3] using TypoScript and $this->cObj->IMAGE to create thumbnails...

Kahlil Lechelt k.lechelt at gmx.de
Fri Jan 13 16:21:47 CET 2006


Hi.

I want to create cropped thumbnails.
I was told to use $this->cObj->IMAGE($conf) like Hachmeister in this 
tutorial: 
http://typo3.hachmeister.org/Eigene_Frontend_Plugins.137+M56c0fd95b18.0.html
to do that.

So i put this TYPOscript:

plugin.tx_mygallery_pi1 {
  ...

   image {
     file.maxW = 120
     imageLinkWrap = 1
     imageLinkWrap {
       enable = 1
       bodyTag (
         <body bgcolor="#000000" leftmargin="2" topmargin="2"
           marginwidth="2" marginheight="2">
       )
       wrap = <a href="javascript:close();"> | </a>
       width = 640m
       height = 640m
       JSwindow = 1
       JSwindow.newWindow = 1
       JSwindow.expand = 4,4
     }
   }
}

and this phpcode:
...
$img = $this->conf["image."];
$img["file"] = "uploads/tx_imagegallery/".$img_row["image"];

$testIMG = $this->cObj->IMAGE($img);
t3lib_div::debug($testIMG);
...

to test if i get any output after the hachmeister principle
and i do get absolutely nothing...

am i overseeing something?
can somebody tell me how to use this image function properly?

Best regards,
Kahlil



More information about the TYPO3-english mailing list