|
@@ 110-114 (lines=5) @@
|
| 107 |
|
$optimalWidth = $newWidth; |
| 108 |
|
$optimalHeight = $this->getSizeByFixedWidth($newWidth); |
| 109 |
|
break; |
| 110 |
|
case 'auto': |
| 111 |
|
$optionArray = $this->getSizeByAuto($newWidth, $newHeight); |
| 112 |
|
$optimalWidth = $optionArray['optimalWidth']; |
| 113 |
|
$optimalHeight = $optionArray['optimalHeight']; |
| 114 |
|
break; |
| 115 |
|
case 'crop': |
| 116 |
|
$optionArray = $this->getOptimalCrop($newWidth, $newHeight); |
| 117 |
|
$optimalWidth = $optionArray['optimalWidth']; |
|
@@ 115-119 (lines=5) @@
|
| 112 |
|
$optimalWidth = $optionArray['optimalWidth']; |
| 113 |
|
$optimalHeight = $optionArray['optimalHeight']; |
| 114 |
|
break; |
| 115 |
|
case 'crop': |
| 116 |
|
$optionArray = $this->getOptimalCrop($newWidth, $newHeight); |
| 117 |
|
$optimalWidth = $optionArray['optimalWidth']; |
| 118 |
|
$optimalHeight = $optionArray['optimalHeight']; |
| 119 |
|
break; |
| 120 |
|
default: |
| 121 |
|
$optimalWidth = ""; |
| 122 |
|
$optimalHeight = ""; |