|
@@ 1906-1916 (lines=11) @@
|
| 1903 |
|
} |
| 1904 |
|
break; |
| 1905 |
|
|
| 1906 |
|
case 'ds': |
| 1907 |
|
if ($this->ImageMagickSwitchAvailable(array('colorspace', 'modulate'))) { |
| 1908 |
|
if ($parameter == 100) { |
| 1909 |
|
$commandline .= ' -colorspace GRAY'; |
| 1910 |
|
$commandline .= ' -modulate 100,0,100'; |
| 1911 |
|
} else { |
| 1912 |
|
$commandline .= ' -modulate '.phpthumb_functions::escapeshellarg_replacement('100,'.(100 - intval($parameter)).',100'); |
| 1913 |
|
} |
| 1914 |
|
$successfullyProcessedFilters[] = $filterkey; |
| 1915 |
|
} |
| 1916 |
|
break; |
| 1917 |
|
|
| 1918 |
|
case 'sat': |
| 1919 |
|
if ($this->ImageMagickSwitchAvailable(array('colorspace', 'modulate'))) { |
|
@@ 1918-1928 (lines=11) @@
|
| 1915 |
|
} |
| 1916 |
|
break; |
| 1917 |
|
|
| 1918 |
|
case 'sat': |
| 1919 |
|
if ($this->ImageMagickSwitchAvailable(array('colorspace', 'modulate'))) { |
| 1920 |
|
if ($parameter == -100) { |
| 1921 |
|
$commandline .= ' -colorspace GRAY'; |
| 1922 |
|
$commandline .= ' -modulate 100,0,100'; |
| 1923 |
|
} else { |
| 1924 |
|
$commandline .= ' -modulate '.phpthumb_functions::escapeshellarg_replacement('100,'.(100 + intval($parameter)).',100'); |
| 1925 |
|
} |
| 1926 |
|
$successfullyProcessedFilters[] = $filterkey; |
| 1927 |
|
} |
| 1928 |
|
break; |
| 1929 |
|
|
| 1930 |
|
case 'gray': |
| 1931 |
|
if ($this->ImageMagickSwitchAvailable(array('colorspace', 'modulate'))) { |