Hallo zusammen,
ich sitze hier gerade und versuche ein Bild per cObj->cImage einzubinden, welches sich per Klick in einem Popup vergrößern lässt. Mein Problem ist, ich bekomme das Bild zwar ins Popup, aber das Thumbnail wird in originalgröße dargestellt. Sämtliche Versuche per TypoScript übergabe das Bild klein zu bekommen schlugen fehl.
Hier mein Code:
<?php
$TSConf['maxW'] = 150;
$TSConf['maxW.'] = 150;
$TSConf['width'] = 150;
$TSConf['width.'] = 150;
$TSConf['file']['maxW'] = 150;
$TSConf['file']['maxW.'] = 150;
$TSConf['file']['width'] = 150;
$TSConf['file']['width.'] = 150;
$TSConf['file.']['maxW'] = 150;
$TSConf['file.']['maxW.'] = 150;
$TSConf['file.']['width'] = 150;
$TSConf['file.']['width.'] = 150;
for($i = 0; $i < count($imageFiles); $i++) {
$images[] = $this->cObj->cImage($imageFiles[$i], $TSConf);
}
?>
Irgendwas davon müsste doch ziehen, vor allem wenn man sich die tslib_cObj->getImgResource(); anschaut.
Hoffe jemand kann mir da einen Tipp geben woran es liegen kann.
Gruß,
Christoph