@@ 2207-2216 (lines=10) @@ | ||
2204 | } |
|
2205 | break; |
|
2206 | ||
2207 | case 'sep': |
|
2208 | if ($this->ImageMagickSwitchAvailable('sepia-tone')) { |
|
2209 | @list($amount, $color) = explode('|', $parameter); |
|
2210 | $amount = ($amount ?: 80); |
|
2211 | if (!$color) { |
|
2212 | $commandline .= ' -sepia-tone ' . phpthumb_functions::escapeshellarg_replacement(min(max((int)$amount, 0), 100) . '%'); |
|
2213 | $successfullyProcessedFilters[] = $filterkey; |
|
2214 | } |
|
2215 | } |
|
2216 | break; |
|
2217 | ||
2218 | case 'gam': |
|
2219 | @list($amount) = explode('|', $parameter); |
|
@@ 2218-2227 (lines=10) @@ | ||
2215 | } |
|
2216 | break; |
|
2217 | ||
2218 | case 'gam': |
|
2219 | @list($amount) = explode('|', $parameter); |
|
2220 | $amount = min(max((float)$amount, 0.001), 10); |
|
2221 | if (number_format($amount, 3) != '1.000') { |
|
2222 | if ($this->ImageMagickSwitchAvailable('gamma')) { |
|
2223 | $commandline .= ' -gamma ' . phpthumb_functions::escapeshellarg_replacement($amount); |
|
2224 | $successfullyProcessedFilters[] = $filterkey; |
|
2225 | } |
|
2226 | } |
|
2227 | break; |
|
2228 | ||
2229 | case 'neg': |
|
2230 | if ($this->ImageMagickSwitchAvailable('negate')) { |
|
@@ 2372-2379 (lines=8) @@ | ||
2369 | } |
|
2370 | break; |
|
2371 | ||
2372 | case 'blur': |
|
2373 | if ($this->ImageMagickSwitchAvailable('blur')) { |
|
2374 | @list($radius) = explode('|', $parameter); |
|
2375 | $radius = (!empty($radius) ? min(max((int)$radius, 0), 25) : 1); |
|
2376 | $commandline .= ' -blur ' . phpthumb_functions::escapeshellarg_replacement($radius); |
|
2377 | $successfullyProcessedFilters[] = $filterkey; |
|
2378 | } |
|
2379 | break; |
|
2380 | ||
2381 | case 'gblr': |
|
2382 | @list($radius) = explode('|', $parameter); |