Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Stack Blur implementation for iOS
Objective-C Ruby
branch: master

Merge pull request #25 from lloydsheng/master

Add pod spec file and fix xcode 5.1 warning
latest commit 3638312cf4
Thomas LANDSPURG authored


This is a StackBlur implementation for iOS based on the algorithm of:

by Mario Klingemann

To use it, just import the UIImage+StackBlur.h and .m in your project.

Then, to blur an image:

UIImage *newIma=[oldIma stackBlur:radius];

You can also apply the method to a buffer directly if you dont'have access to the full UIImage (see applyStackBlurToBuffer)

The algorithm expect an RGBA format (32 bits/pixel).
If it's not the case, the image will be transformed in a 32 bits/pixel format at each call. You can also use the [UIImage normalize] function of the library to do it once

UIImage *myIma=[[UIImage imageNamed:@"blackWhite.png"] normalized];

UIImage *blurIma=[myIm stackBlur:radius];

Radius must be higher than 1 ...

License: New BSD license.
Something went wrong with that request. Please try again.