@@ 449-453 (lines=5) @@ | ||
446 | ); |
|
447 | } |
|
448 | ||
449 | if (($minW && ($minW > $imageWidth)) || ($minH && ($minH > $imageHeight))) { |
|
450 | // Must scale up, keeping ratio |
|
451 | $this->doResize($minW, $minH, true); |
|
452 | break; |
|
453 | } |
|
454 | ||
455 | if (($maxW && ($maxW < $imageWidth)) || ($maxH && ($maxH < $imageHeight))) { |
|
456 | // Must scale down. keeping ratio |
|
@@ 455-459 (lines=5) @@ | ||
452 | break; |
|
453 | } |
|
454 | ||
455 | if (($maxW && ($maxW < $imageWidth)) || ($maxH && ($maxH < $imageHeight))) { |
|
456 | // Must scale down. keeping ratio |
|
457 | $this->doResize($maxW, $maxH, true); |
|
458 | break; |
|
459 | } |
|
460 | break; |
|
461 | ||
462 | case 'crop': |