Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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: 3 months ago
JSON representation
π© An easy and fast library to apply gaussian blur filter on any images.
- Host: GitHub
- URL: https://github.com/jrvansuita/GaussianBlur
- Owner: jrvansuita
- License: mit
- Created: 2016-11-10T13:20:49.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-04-28T13:09:02.000Z (over 2 years ago)
- Last Synced: 2024-06-16T03:32:05.822Z (5 months ago)
- Topics: android, bitmap, blur, blur-backgrounds, blurry, canvas, drawable, filter, filters, gaussian, gaussian-filter, gaussian-processes, gaussianblur, image, image-compression, image-processing, renderscript
- Language: Java
- Homepage:
- Size: 18.3 MB
- Stars: 503
- Watchers: 9
- Forks: 91
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
- awesome-github-android-ui - GaussianBlur - ε―ΉεΎηεΊη¨ι«ζ―ζ¨‘η³ (樑η³ζζ)
README
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)
# 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);
```
#