|
@@ 63-65 (lines=3) @@
|
| 60 |
|
} |
| 61 |
|
} |
| 62 |
|
|
| 63 |
|
if ($scaleWidth < $scaleHeight || ($cover && $scaleWidth > $scaleHeight)) { |
| 64 |
|
return [(int) $newWidth, (int) ceil($scaleWidth * $oldHeight)]; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
if ($scaleWidth > $scaleHeight || ($cover && $scaleWidth < $scaleHeight)) { |
| 68 |
|
return [(int) ceil($scaleHeight * $oldWidth), (int) $newHeight]; |
|
@@ 67-69 (lines=3) @@
|
| 64 |
|
return [(int) $newWidth, (int) ceil($scaleWidth * $oldHeight)]; |
| 65 |
|
} |
| 66 |
|
|
| 67 |
|
if ($scaleWidth > $scaleHeight || ($cover && $scaleWidth < $scaleHeight)) { |
| 68 |
|
return [(int) ceil($scaleHeight * $oldWidth), (int) $newHeight]; |
| 69 |
|
} |
| 70 |
|
|
| 71 |
|
return [(int) $newWidth, (int) $newHeight]; |
| 72 |
|
} |