|
@@ 2673-2680 (lines=8) @@
|
| 2670 |
|
$phpthumbFilters->Grayscale($this->gdimg_output); |
| 2671 |
|
break; |
| 2672 |
|
|
| 2673 |
|
case 'clr': // Colorize |
| 2674 |
|
if (phpthumb_functions::gd_version() < 2) { |
| 2675 |
|
$this->DebugMessage('Skipping Colorize() because gd_version is "'.phpthumb_functions::gd_version().'"', __FILE__, __LINE__); |
| 2676 |
|
break; |
| 2677 |
|
} |
| 2678 |
|
@list($amount, $color) = explode('|', $parameter, 2); |
| 2679 |
|
$phpthumbFilters->Colorize($this->gdimg_output, $amount, $color); |
| 2680 |
|
break; |
| 2681 |
|
|
| 2682 |
|
case 'sep': // Sepia |
| 2683 |
|
if (phpthumb_functions::gd_version() < 2) { |
|
@@ 2682-2689 (lines=8) @@
|
| 2679 |
|
$phpthumbFilters->Colorize($this->gdimg_output, $amount, $color); |
| 2680 |
|
break; |
| 2681 |
|
|
| 2682 |
|
case 'sep': // Sepia |
| 2683 |
|
if (phpthumb_functions::gd_version() < 2) { |
| 2684 |
|
$this->DebugMessage('Skipping Sepia() because gd_version is "'.phpthumb_functions::gd_version().'"', __FILE__, __LINE__); |
| 2685 |
|
break; |
| 2686 |
|
} |
| 2687 |
|
@list($amount, $color) = explode('|', $parameter, 2); |
| 2688 |
|
$phpthumbFilters->Sepia($this->gdimg_output, $amount, $color); |
| 2689 |
|
break; |
| 2690 |
|
|
| 2691 |
|
case 'gam': // Gamma correction |
| 2692 |
|
$phpthumbFilters->Gamma($this->gdimg_output, $parameter); |
|
@@ 2988-2996 (lines=9) @@
|
| 2985 |
|
$phpthumbFilters->WatermarkText($this->gdimg_output, $text, $size, $alignment, $hex_color, $ttffont, $opacity, $margin, $angle, $bg_color, $bg_opacity, $fillextend); |
| 2986 |
|
break; |
| 2987 |
|
|
| 2988 |
|
case 'blur': // Blur |
| 2989 |
|
@list($radius) = explode('|', $parameter, 1); |
| 2990 |
|
$radius = ($radius ? $radius : 1); |
| 2991 |
|
if (phpthumb_functions::gd_version() >= 2) { |
| 2992 |
|
$phpthumbFilters->Blur($this->gdimg_output, $radius); |
| 2993 |
|
} else { |
| 2994 |
|
$this->DebugMessage('Skipping Blur() because gd_version is "'.phpthumb_functions::gd_version().'"', __FILE__, __LINE__); |
| 2995 |
|
} |
| 2996 |
|
break; |
| 2997 |
|
|
| 2998 |
|
case 'gblr': // Gaussian Blur |
| 2999 |
|
$phpthumbFilters->BlurGaussian($this->gdimg_output); |