Add 'fast' blur and Gaussian blur feature #108

This commit is contained in:
Lovell Fuller
2014-11-10 22:38:13 +00:00
parent df5cf402e3
commit 32d9bc204a
5 changed files with 156 additions and 2 deletions

View File

@@ -319,11 +319,19 @@ Do not enlarge the output image if the input image width *or* height are already
This is equivalent to GraphicsMagick's `>` geometry option: "change the dimensions of the image only if its width or height exceeds the geometry specification".
#### blur([radius])
When used without parameters, performs a fast, mild blur of the output image. This typically reduces performance by 10%.
When a `radius` is provided, performs a slower, more accurate Gaussian blur. This typically reduces performance by 30%.
* `radius`, if present, is an integral Number representing the approximate blur mask radius in pixels.
#### sharpen([radius], [flat], [jagged])
When used without parameters, perform a fast, mild sharpen of the output image. This typically reduces performance by 10%.
When used without parameters, performs a fast, mild sharpen of the output image. This typically reduces performance by 10%.
When a `radius` is provided, perform a slower, more accurate sharpen of the L channel in the LAB colour space. Separate control over the level of sharpening in "flat" and "jagged" areas is available. This typically reduces performance by 50%.
When a `radius` is provided, performs a slower, more accurate sharpen of the L channel in the LAB colour space. Separate control over the level of sharpening in "flat" and "jagged" areas is available. This typically reduces performance by 50%.
* `radius`, if present, is an integral Number representing the sharpen mask radius in pixels.
* `flat`, if present, is a Number representing the level of sharpening to apply to "flat" areas, defaulting to a value of 1.0.