This is an Android project. Easy and simple library to apply gaussian blur filter on images. The library lets you apply a fast gaussian blur filter on any images very fast because the image will be scaled down before apply the filter. Doing it asynchronous or not.
Please check the sample app and feel free to help with a pull request. It's located here.
allprojects {
repositories {
...
maven { url "https://jitpack.io" }
}
}
Step #2. Add the dependency (See latest release).
dependencies {
compile 'com.github.jrvansuita:GaussianBlur:+'
}
defaultConfig {
...
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
}
//Synchronous blur
Bitmap blurredBitmap = GaussianBlur.with(context).render(R.mipmap.your_image);
imageView.setImageBitmap(blurredBitmap);
//Asynchronous blur
GaussianBlur.with(context).put(R.mipmap.your_image, imageView);
//Asynchronous with scaleDown and changing radius
GaussianBlur.with(context).size(300).radius(10).put(R.mipmap.your_image, imageView);