@@ 2769-2775 (lines=7) @@ | ||
2766 | ||
2767 | if ($resizeByBiggerSide) { |
|
2768 | ||
2769 | if ($orig_w > $orig_h) { |
|
2770 | $size_h = $orig_h * $width / $orig_w; |
|
2771 | $size_w = $width; |
|
2772 | } else { |
|
2773 | $size_w = $orig_w * $height / $orig_h; |
|
2774 | $size_h = $height; |
|
2775 | } |
|
2776 | ||
2777 | } else { |
|
2778 | if ($orig_w > $orig_h) { |
|
@@ 2777-2785 (lines=9) @@ | ||
2774 | $size_h = $height; |
|
2775 | } |
|
2776 | ||
2777 | } else { |
|
2778 | if ($orig_w > $orig_h) { |
|
2779 | $size_w = $orig_w * $height / $orig_h; |
|
2780 | $size_h = $height; |
|
2781 | } else { |
|
2782 | $size_h = $orig_h * $width / $orig_w; |
|
2783 | $size_w = $width; |
|
2784 | } |
|
2785 | } |
|
2786 | } |
|
2787 | ||
2788 | switch ($this->imgLib) { |