imageBlur

Smooths (blurs) the ColdFusion image.

imageBlur(name [, blurradius]) → returns void

Member Function Syntax

someImage.blur(blurradius)

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

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

<cfset imageBlur(myImage,10)>   

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);

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub