Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jrvansuita/GaussianBlur

🎩 An easy and fast library to apply gaussian blur filter on any images.
https://github.com/jrvansuita/GaussianBlur

android bitmap blur blur-backgrounds blurry canvas drawable filter filters gaussian gaussian-filter gaussian-processes gaussianblur image image-compression image-processing renderscript

Last synced: about 1 month ago
JSON representation

🎩 An easy and fast library to apply gaussian blur filter on any images.

Awesome Lists containing this project

README

        

Get it on Google Play
# Gaussian Blur

This is an [**Android**](https://developer.android.com) project. Easy and simple library to apply gaussian blur filter on images. The library lets you apply a 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](https://jitpack.io/v/jrvansuita/GaussianBlur.svg)](https://jitpack.io/#jrvansuita/GaussianBlur)
[![Android Arsenal](https://img.shields.io/badge/Android%20Arsenal-GaussianBlur-green.svg?style=true)](https://android-arsenal.com/details/1/4640)
[![MaterialUp](https://img.shields.io/badge/MaterialUp-GaussianBlur-6ad0d9.svg?)](https://www.uplabs.com/posts/gaussianblur)

# Sample app
Please check the sample app and feel free to help with a pull request. It's [located here](/app/).

[![Appetize.io](https://img.shields.io/badge/Apptize.io-Run%20Now-brightgreen.svg?)](https://appetize.io/embed/uvqk1ee5m2pw1genqtayncfw70?device=nexus7&scale=50&autoplay=true&orientation=portrait&deviceColor=black) [![Demo](https://img.shields.io/badge/Demo-Download-blue.svg)](http://apk-dl.com/dl/com.vansuita.gaussianblur.sample)
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/3fd61fd7128145008894a8cec0d1f8fc)](https://www.codacy.com/app/jrvansuita/GaussianBlur?utm_source=github.com&utm_medium=referral&utm_content=jrvansuita/GaussianBlur&utm_campaign=Badge_Grade)
API

# Setup

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

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

#### Step #2. Add the dependency ([See latest release](https://jitpack.io/#jrvansuita/GaussianBlur)).

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

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

```groovy
defaultConfig {
...
renderscriptTargetApi 19
renderscriptSupportModeEnabled true
}
```

# Implementation

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

#


Instagram


Github


Google Play Store


E-mail