---
title: "Bild unproportional ausgeben!"
url: "https://www.typo3.net/d/71199-bild-unproportional-ausgeben"
source: "typo3.net"
tags: ["Extensions","Entwicklung","Bilder","Frage","PHP"]
created: "2007-12-03"
last_reply: "2007-12-03"
replies: 2
solved: false
page: 1
pages: 1
lang: "de"
---

# Bild unproportional ausgeben!

Extensions › Entwicklung · 2 Antworten · gestartet 2007-12-03

## Eröffnungsbeitrag

**laser** · 2007-12-03 · [Beitrag #1](https://www.typo3.net/d/71199-bild-unproportional-ausgeben/1)

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:

```php
 $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!

## Antworten

### [#2](https://www.typo3.net/d/71199-bild-unproportional-ausgeben/2) · just2b · 2007-12-03

Statt maxW/maxH einfach width/height

georg

### [#3](https://www.typo3.net/d/71199-bild-unproportional-ausgeben/3) · laser · 2007-12-03

Oh Gott, Kopf -> Tisch

Danke Georg! :-)

---

Quelle: „Bild unproportional ausgeben!“, typo3.net, https://www.typo3.net/d/71199-bild-unproportional-ausgeben
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
