1
0
mirror of https://github.com/mosbth/cimage.git synced 2025-08-18 22:01:23 +02:00

Adding option taking comma-separated list of 11 float-values, wraps and exposes . #4

This commit is contained in:
Mikael Roos
2014-11-24 09:27:47 +01:00
parent 4dfbcd9784
commit 188f8cd64d
3 changed files with 91 additions and 4 deletions

View File

@@ -472,6 +472,15 @@ verbose("dpr = $dpr");
/**
* convolve - image convolution as in http://php.net/manual/en/function.imageconvolution.php
*/
$convolve = get('convolve', null);
verbose("convolve = $convolve");
/**
* Display image if verbose mode
*/
@@ -483,7 +492,7 @@ if ($verbose) {
unset($query['nocache']);
unset($query['nc']);
unset($query['json']);
$url1 = '?' . http_build_query($query);
$url1 = '?' . htmlentities(urldecode(http_build_query($query)));
echo <<<EOD
<a href=$url1><code>$url1</code></a><br>
<img src='{$url1}' />
@@ -526,6 +535,7 @@ $img->setVerbose($verbose)
'sharpen' => $sharpen,
'emboss' => $emboss,
'blur' => $blur,
'convolve' => $convolve,
'rotateAfter' => $rotateAfter,
'autoRotate' => $autoRotate,