Hi,
ich bastel zur Zeit an einer Galerie und habe das Problem das ich ein Bild unproportional ausgeben möchte, also eine feste Breite und Höhe an die er sich auch halten soll. Mein Code sieht bisher so aus:
$imgTSConfig = array();
$imgTSConfig['file'] = 'uploads/tx_mhsimplegallery/' . $row['image'];
$imgTSConfig['file.']['maxW'] = $this->conf['topImageMaxWidth'];
$imgTSConfig['file.']['maxH'] = $this->conf['topImageMaxHeight'];
$imgTSConfig['altText'] = $row['title'];
$imgTSConfig['titleText'] = $row['title'];
$imgTSConfig['params'] = $this->conf['topImageParams'];
$content = $this->pi_linkTP($this->cObj->IMAGE($imgTSConfig),array($this->prefixId.'[image]'=> $row['uid']),'',$this->conf['single_pid']);
Danke im Voraus!