|
@@ 2722-2728 (lines=7) @@
|
| 2719 |
|
$this->is_alpha = true; |
| 2720 |
|
if ($this->thumbnail_image_width >= $this->thumbnail_width) { |
| 2721 |
|
$aspectratio = $this->thumbnail_image_height / $this->thumbnail_image_width; |
| 2722 |
|
if ($this->w) { |
| 2723 |
|
$this->thumbnail_image_height = round($this->thumbnail_image_width * $aspectratio); |
| 2724 |
|
$this->thumbnail_height = ($this->h ?: $this->thumbnail_image_height); |
| 2725 |
|
} elseif ($this->thumbnail_image_height < $this->thumbnail_height) { |
| 2726 |
|
$this->thumbnail_image_height = $this->thumbnail_height; |
| 2727 |
|
$this->thumbnail_image_width = round($this->thumbnail_image_height / $aspectratio); |
| 2728 |
|
} |
| 2729 |
|
} else { |
| 2730 |
|
$aspectratio = $this->thumbnail_image_width / $this->thumbnail_image_height; |
| 2731 |
|
if ($this->h) { |
|
@@ 2729-2737 (lines=9) @@
|
| 2726 |
|
$this->thumbnail_image_height = $this->thumbnail_height; |
| 2727 |
|
$this->thumbnail_image_width = round($this->thumbnail_image_height / $aspectratio); |
| 2728 |
|
} |
| 2729 |
|
} else { |
| 2730 |
|
$aspectratio = $this->thumbnail_image_width / $this->thumbnail_image_height; |
| 2731 |
|
if ($this->h) { |
| 2732 |
|
$this->thumbnail_image_width = round($this->thumbnail_image_height * $aspectratio); |
| 2733 |
|
} elseif ($this->thumbnail_image_width < $this->thumbnail_width) { |
| 2734 |
|
$this->thumbnail_image_width = $this->thumbnail_width; |
| 2735 |
|
$this->thumbnail_image_height = round($this->thumbnail_image_width / $aspectratio); |
| 2736 |
|
} |
| 2737 |
|
} |
| 2738 |
|
|
| 2739 |
|
return true; |
| 2740 |
|
} |