|
@@ 2407-2410 (lines=4) @@
|
| 2404 |
|
if ($this->w) { |
| 2405 |
|
$this->thumbnail_image_height = round($this->thumbnail_image_width * $aspectratio); |
| 2406 |
|
$this->thumbnail_height = ($this->h ? $this->h : $this->thumbnail_image_height); |
| 2407 |
|
} elseif ($this->thumbnail_image_height < $this->thumbnail_height) { |
| 2408 |
|
$this->thumbnail_image_height = $this->thumbnail_height; |
| 2409 |
|
$this->thumbnail_image_width = round($this->thumbnail_image_height / $aspectratio); |
| 2410 |
|
} |
| 2411 |
|
|
| 2412 |
|
} else { |
| 2413 |
|
|
|
@@ 2417-2420 (lines=4) @@
|
| 2414 |
|
$aspectratio = $this->thumbnail_image_width / $this->thumbnail_image_height; |
| 2415 |
|
if ($this->h) { |
| 2416 |
|
$this->thumbnail_image_width = round($this->thumbnail_image_height * $aspectratio); |
| 2417 |
|
} elseif ($this->thumbnail_image_width < $this->thumbnail_width) { |
| 2418 |
|
$this->thumbnail_image_width = $this->thumbnail_width; |
| 2419 |
|
$this->thumbnail_image_height = round($this->thumbnail_image_width / $aspectratio); |
| 2420 |
|
} |
| 2421 |
|
|
| 2422 |
|
} |
| 2423 |
|
return true; |