|
@@ 591-595 (lines=5) @@
|
| 588 |
|
$optimalHeight = $dimensionsArray['optimalHeight']; |
| 589 |
|
break; |
| 590 |
|
case '2': |
| 591 |
|
case 'landscape': |
| 592 |
|
$dimensionsArray = $this->getSizeByFixedWidth($newWidth, $newHeight); |
| 593 |
|
$optimalWidth = $dimensionsArray['optimalWidth']; |
| 594 |
|
$optimalHeight = $dimensionsArray['optimalHeight']; |
| 595 |
|
break; |
| 596 |
|
case '3': |
| 597 |
|
case 'auto': |
| 598 |
|
$dimensionsArray = $this->getSizeByAuto($newWidth, $newHeight); |
|
@@ 597-601 (lines=5) @@
|
| 594 |
|
$optimalHeight = $dimensionsArray['optimalHeight']; |
| 595 |
|
break; |
| 596 |
|
case '3': |
| 597 |
|
case 'auto': |
| 598 |
|
$dimensionsArray = $this->getSizeByAuto($newWidth, $newHeight); |
| 599 |
|
$optimalWidth = $dimensionsArray['optimalWidth']; |
| 600 |
|
$optimalHeight = $dimensionsArray['optimalHeight']; |
| 601 |
|
break; |
| 602 |
|
case '4': |
| 603 |
|
case 'crop': |
| 604 |
|
$dimensionsArray = $this->getOptimalCrop($newWidth, $newHeight); |
|
@@ 603-607 (lines=5) @@
|
| 600 |
|
$optimalHeight = $dimensionsArray['optimalHeight']; |
| 601 |
|
break; |
| 602 |
|
case '4': |
| 603 |
|
case 'crop': |
| 604 |
|
$dimensionsArray = $this->getOptimalCrop($newWidth, $newHeight); |
| 605 |
|
$optimalWidth = $dimensionsArray['optimalWidth']; |
| 606 |
|
$optimalHeight = $dimensionsArray['optimalHeight']; |
| 607 |
|
break; |
| 608 |
|
} |
| 609 |
|
|
| 610 |
|
return array('optimalWidth' => $optimalWidth, 'optimalHeight' => $optimalHeight); |