@@ 503-506 (lines=4) @@ | ||
500 | $cropStartY = ( $optimalHeight/ 2) - ( $newHeight/2 ); |
|
501 | break; |
|
502 | ||
503 | case 'm': |
|
504 | $cropStartX = ( $optimalWidth / 2) - ( $newWidth /2 ); |
|
505 | $cropStartY = ( $optimalHeight/ 2) - ( $newHeight/2 ); |
|
506 | break; |
|
507 | ||
508 | case 'r': |
|
509 | $cropStartX = $optimalWidth - $newWidth; |
|
@@ 508-511 (lines=4) @@ | ||
505 | $cropStartY = ( $optimalHeight/ 2) - ( $newHeight/2 ); |
|
506 | break; |
|
507 | ||
508 | case 'r': |
|
509 | $cropStartX = $optimalWidth - $newWidth; |
|
510 | $cropStartY = ( $optimalHeight/ 2) - ( $newHeight/2 ); |
|
511 | break; |
|
512 | ||
513 | case 'bl': |
|
514 | $cropStartX = 0; |
|
@@ 518-521 (lines=4) @@ | ||
515 | $cropStartY = $optimalHeight - $newHeight; |
|
516 | break; |
|
517 | ||
518 | case 'b': |
|
519 | $cropStartX = ( $optimalWidth / 2) - ( $newWidth /2 ); |
|
520 | $cropStartY = $optimalHeight - $newHeight; |
|
521 | break; |
|
522 | ||
523 | case 'br': |
|
524 | $cropStartX = $optimalWidth - $newWidth; |
|
@@ 541-545 (lines=5) @@ | ||
538 | } |
|
539 | break; |
|
540 | ||
541 | default: |
|
542 | // *** Default to center |
|
543 | $cropStartX = ( $optimalWidth / 2) - ( $newWidth /2 ); |
|
544 | $cropStartY = ( $optimalHeight/ 2) - ( $newHeight/2 ); |
|
545 | break; |
|
546 | } |
|
547 | } |
|
548 |