imageBlur

Smooths (blurs) the ColdFusion image.

imageBlur(name [, blurradius]) → returns void

Member Function Syntax

someImage.blur(blurradius)

imageBlur Argument Reference

name String
Required

The image on which this operation is performed.

blurradius Numeric
Default: 3

The size of the blur radius.Value must be greater than or equal to 3 and less than or equal to 10.

Examples sample code invoking the imageBlur function


Tag Syntax

This example shows how to blur an image by a radius of 10.

<cfset imageBlur(myImage,10)>   

Using imageBlur member function

CF 11+ Lucee 4.5+ Smooth or blur an image

imgObj = imageRead("http://cfdocs.org/apple-touch-icon.png");
imgObj.blur(5);
cfimage(action="writeToBrowser", source=imgObj);

Fork me on GitHub