| @@ 1250-1258 (lines=9) @@ | ||
| 1247 | 'newHeight' => $height |
|
| 1248 | ); |
|
| 1249 | ||
| 1250 | if ($this->maxWidth > 0) |
|
| 1251 | { |
|
| 1252 | $newSize = $this->calcWidth($width, $height); |
|
| 1253 | ||
| 1254 | if ($this->maxHeight > 0 && $newSize['newHeight'] > $this->maxHeight) |
|
| 1255 | { |
|
| 1256 | $newSize = $this->calcHeight($newSize['newWidth'], $newSize['newHeight']); |
|
| 1257 | } |
|
| 1258 | } |
|
| 1259 | ||
| 1260 | if ($this->maxHeight > 0) |
|
| 1261 | { |
|
| @@ 1260-1268 (lines=9) @@ | ||
| 1257 | } |
|
| 1258 | } |
|
| 1259 | ||
| 1260 | if ($this->maxHeight > 0) |
|
| 1261 | { |
|
| 1262 | $newSize = $this->calcHeight($width, $height); |
|
| 1263 | ||
| 1264 | if ($this->maxWidth > 0 && $newSize['newWidth'] > $this->maxWidth) |
|
| 1265 | { |
|
| 1266 | $newSize = $this->calcWidth($newSize['newWidth'], $newSize['newHeight']); |
|
| 1267 | } |
|
| 1268 | } |
|
| 1269 | ||
| 1270 | $this->newDimensions = $newSize; |
|
| 1271 | } |
|