GithubHelp home page GithubHelp logo

blur-effect's Introduction

offscreen image blurring tool

Based on the idea

build on debian/ubuntu

requirements:

  • libglm-dev
  • libglfw3-dev (only needed if build demo blur-exp)
  • libglew-dev
  • libgbm-dev
  • libegl1-mesa-dev
  • libgles2-mesa-dev
  • libgdk-pixbuf2.0-dev

mkdir build && cd build && cmake .. && make

after build has done, use the binary blur_image to blur a image and save as file. show usage by ./blur_image -h example: ./blur_image -p 10 -r 11 /usr/share/wallpapers/deepin/Garden\ In\ The\ Autumn.jpg -o out.jpg

note: if you run it with a X Server running (which is the most probable case), add sudo at the front. or you can use render node to do blurring without privilege like

./blur_image -d /dev/dri/renderD128 -p 6 -r 7 /usr/share/wallpapers/deepin/Garden\ In\ The\ Autumn.jpg -o out.jpg 

in case if you want to build demo use cmake -DBUILD_DEMO=on .. instead and after build finished, use blur-exps to test blurring with windowing system.

blur-effect's People

Contributors

sonald avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

blur-effect's Issues

nvidia support (maybe)

It seems that Nvidia does not support EGL GBM, and it occurred to me that they propose EGLStreams instead. need more info later.

Got a black image

run blur_image A.jpg -o A2.jpg ,and I got a full black image ,also tried sudo,but nothing defferent.I use archlinux.

need EGL_KHR_surfaceless_context extension

I get the following error for blur_effect img.png -o blur_img.png:

image has no alpha
try to open /dev/dri/renderD128
backend name: drm
need EGL_KHR_surfaceless_context extension

I use Arch Linux and installed the program from Community repository as blur-effect package.

Missing License

Please note the license of the project on README, or put a separate LICENSE file if needed.

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.