|
@@ 204-211 (lines=8) @@
|
| 201 |
|
{ |
| 202 |
|
if (!$this->image_validated) return false; |
| 203 |
|
|
| 204 |
|
if ($specific_size) { |
| 205 |
|
$width = $thumbw; |
| 206 |
|
$height = $thumbh; |
| 207 |
|
} else { |
| 208 |
|
$scale = ($this->width > 0 && $this->height > 0) ? min($thumbw / $this->width, $thumbh / $this->height) : 0; |
| 209 |
|
$width = (int) ($this->width * $scale); |
| 210 |
|
$height = (int) ($this->height * $scale); |
| 211 |
|
} |
| 212 |
|
$result = $this->image->resizeImage($width, $height, $this->filter, 1); |
| 213 |
|
$this->width = $thumbw; |
| 214 |
|
$this->height = $thumbh; |
|
@@ 375-382 (lines=8) @@
|
| 372 |
|
$this->width = $thumbw; |
| 373 |
|
$this->height = $thumbh; |
| 374 |
|
} elseif ($border == 0) { |
| 375 |
|
if ($specific_size) { |
| 376 |
|
$width = $thumbw; |
| 377 |
|
$height = $thumbh; |
| 378 |
|
} else { |
| 379 |
|
$scale = ($this->width > 0 && $this->height > 0) ? min($thumbw / $this->width, $thumbh / $this->height) : 0; |
| 380 |
|
$width = (int) ($this->width * $scale); |
| 381 |
|
$height = (int) ($this->height * $scale); |
| 382 |
|
} |
| 383 |
|
$deltaw = 0; |
| 384 |
|
$deltah = 0; |
| 385 |
|
$dst_img = @ImageCreateTrueColor($width, $height); |