|
@@ 2057-2059 (lines=3) @@
|
| 2054 |
|
|
| 2055 |
|
switch($mode) { |
| 2056 |
|
|
| 2057 |
|
case 'propresize': |
| 2058 |
|
$result = $this->imgResize($work_path, $width, $height, true, true, null, $jpgQuality); |
| 2059 |
|
break; |
| 2060 |
|
|
| 2061 |
|
case 'crop': |
| 2062 |
|
$result = $this->imgCrop($work_path, $width, $height, $x, $y, null, $jpgQuality); |
|
@@ 2073-2075 (lines=3) @@
|
| 2070 |
|
$result = $this->imgRotate($work_path, $degree, ($bg ? $bg : $this->options['tmbBgColor']), null, $jpgQuality); |
| 2071 |
|
break; |
| 2072 |
|
|
| 2073 |
|
default: |
| 2074 |
|
$result = $this->imgResize($work_path, $width, $height, false, true, null, $jpgQuality); |
| 2075 |
|
break; |
| 2076 |
|
} |
| 2077 |
|
|
| 2078 |
|
$ret = false; |