Skip to content
An easy and fast library to apply gaussian blur filter on any images. 🎩
Branch: master
Clone or download
Latest commit b012175 Apr 9, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.idea Code quality Feb 20, 2017
app Code quality Feb 20, 2017
gradle/wrapper Initial commit Nov 10, 2016
images Code quality Feb 20, 2017
library Code quality Feb 20, 2017
.gitignore Initial commit Nov 10, 2016
LICENSE.txt licence Nov 18, 2016
README.md Update README.md Apr 8, 2017
build.gradle library reborn 👻 Feb 20, 2017
gradle.properties Initial commit Nov 10, 2016
gradlew Initial commit Nov 10, 2016
gradlew.bat Initial commit Nov 10, 2016
settings.gradle Initial commit Nov 10, 2016

README.md

Gaussian Blur

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.


JitPak Android Arsenal MaterialUp ghit.me

Sample app

Please check the sample app and feel free to help with a pull request. It's located here.

Appetize.io Demo Codacy Badge API

Setup

Step #1. Add the JitPack repository to your build file:

allprojects {
    repositories {
        ...
        maven { url "https://jitpack.io" }
    }
}

Step #2. Add the dependency (See latest release).

dependencies {
    compile 'com.github.jrvansuita:GaussianBlur:+'
}

Step #3. Add the below lines on app module build.gradle file.

defaultConfig {
    ...
    renderscriptTargetApi 19
    renderscriptSupportModeEnabled true
}

Implementation

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

Google+ LinkedIn Instagram Github Google Play Store E-mail
You can’t perform that action at this time.