|
@@ 3029-3036 (lines=8) @@
|
| 3026 |
|
$phpthumbFilters->Grayscale($this->gdimg_output); |
| 3027 |
|
break; |
| 3028 |
|
|
| 3029 |
|
case 'clr': // Colorize |
| 3030 |
|
if (phpthumb_functions::gd_version() < 2) { |
| 3031 |
|
$this->DebugMessage('Skipping Colorize() because gd_version is "' . phpthumb_functions::gd_version() . '"', __FILE__, __LINE__); |
| 3032 |
|
break; |
| 3033 |
|
} |
| 3034 |
|
@list($amount, $color) = explode('|', $parameter, 2); |
| 3035 |
|
$phpthumbFilters->Colorize($this->gdimg_output, $amount, $color); |
| 3036 |
|
break; |
| 3037 |
|
|
| 3038 |
|
case 'sep': // Sepia |
| 3039 |
|
if (phpthumb_functions::gd_version() < 2) { |
|
@@ 3038-3045 (lines=8) @@
|
| 3035 |
|
$phpthumbFilters->Colorize($this->gdimg_output, $amount, $color); |
| 3036 |
|
break; |
| 3037 |
|
|
| 3038 |
|
case 'sep': // Sepia |
| 3039 |
|
if (phpthumb_functions::gd_version() < 2) { |
| 3040 |
|
$this->DebugMessage('Skipping Sepia() because gd_version is "' . phpthumb_functions::gd_version() . '"', __FILE__, __LINE__); |
| 3041 |
|
break; |
| 3042 |
|
} |
| 3043 |
|
@list($amount, $color) = explode('|', $parameter, 2); |
| 3044 |
|
$phpthumbFilters->Sepia($this->gdimg_output, $amount, $color); |
| 3045 |
|
break; |
| 3046 |
|
|
| 3047 |
|
case 'gam': // Gamma correction |
| 3048 |
|
$phpthumbFilters->Gamma($this->gdimg_output, $parameter); |
|
@@ 3353-3361 (lines=9) @@
|
| 3350 |
|
$phpthumbFilters->WatermarkText($this->gdimg_output, $text, $size, $alignment, $hex_color, $ttffont, $opacity, $margin, $angle, $bg_color, $bg_opacity, $fillextend); |
| 3351 |
|
break; |
| 3352 |
|
|
| 3353 |
|
case 'blur': // Blur |
| 3354 |
|
@list($radius) = explode('|', $parameter, 1); |
| 3355 |
|
$radius = ($radius ?: 1); |
| 3356 |
|
if (phpthumb_functions::gd_version() >= 2) { |
| 3357 |
|
$phpthumbFilters->Blur($this->gdimg_output, $radius); |
| 3358 |
|
} else { |
| 3359 |
|
$this->DebugMessage('Skipping Blur() because gd_version is "' . phpthumb_functions::gd_version() . '"', __FILE__, __LINE__); |
| 3360 |
|
} |
| 3361 |
|
break; |
| 3362 |
|
|
| 3363 |
|
case 'gblr': // Gaussian Blur |
| 3364 |
|
$phpthumbFilters->BlurGaussian($this->gdimg_output); |