This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project gfxprim.git.
The branch, master has been updated via 4f696f6a05e20284f976c0ed1d99c6779adda778 (commit) from 500978aa7bfc00cfab2ec26470d50fce51d07f58 (commit)
Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below.
- Log ----------------------------------------------------------------- http://repo.or.cz/w/gfxprim.git/commit/4f696f6a05e20284f976c0ed1d99c6779adda...
commit 4f696f6a05e20284f976c0ed1d99c6779adda778 Author: Cyril Hrubis metan@ucw.cz Date: Sat Apr 7 21:40:29 2012 +0200
demos: Added blur simple python demo.
diff --git a/demos/py_simple/blur.py b/demos/py_simple/blur.py new file mode 100755 index 0000000..5ed5271 --- /dev/null +++ b/demos/py_simple/blur.py @@ -0,0 +1,23 @@ +#!/usr/bin/env python +import sys + +import gfxprim.core as core +import gfxprim.loaders as loaders +import gfxprim.filters as filters + +def main(): + if len(sys.argv) != 3: + print("usage: blur blur-radii image") + sys.exit(1) + + radii = int(sys.argv[1]) + + # Load Image + img = loaders.LoadImage_Wrap(sys.argv[2]) + # Do in-place gaussian blur + filters.FilterGaussianBlur(img, img, radii, radii, None) + # Save result + loaders.SaveJPG("out.jpg", img, None) + +if __name__ == '__main__': + main()
-----------------------------------------------------------------------
Summary of changes: demos/py_simple/blur.py | 23 +++++++++++++++++++++++ 1 files changed, 23 insertions(+), 0 deletions(-) create mode 100755 demos/py_simple/blur.py
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos@gmail.com if you want to unsubscribe, or site admin admin@repo.or.cz if you receive no reply.