Skip to main content

GEGL

Python lithweight wrapper for using GEGL - Generic Graphics Library (http://www.gegl.org)

Currently working for Python2 and Python3

Justificative

In the past, there were custom Python bindings for GEGL on the library source tree itself. However, that code bit-rot and was removed, with the introduction of gobject introspection, automatic bindings for several languages - Python included - could be generated.

The problem with the automatic bindings for GEGL is that although usable, one has to do a lot of typing and copying around to be able to leverage on the introspection capabilities of Gobject and of GEGL itself.

This project ains to add some custom Python code that makes it more “pythonic” to make full use of GEGL.

The file “snippets.py” contains an example of using GEGL thorugh raw gobject introspection - you don’t need this project installed at all to use code like that.

With this installed, even in this early stage, the following statements are enough to create and execute the same GEGL graph used in “snippets.py”:

>>> import gegl
>>> x = gegl.Graph("png-load", "invert", "png-save")
>>> x[0].path = "/home/gwidion/bla.png"
>>> x[0]
OpNode('gegl:png-load')
>>> x[2].path = "/home/gwidion/bla2.png"
>>>
>>> x()
>>>

Prerequisites

You will need a working GEGL with Gobject introspection installed, and pygobject. This comes out of the box with proper install of GEGL and gobject introspection: works in Fedora 20 (late 2013) and possibly other recent distributions as of 2014.

Release files for python-gegl 0.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for python-gegl 0.2.1
File Size Uploaded
python-gegl-0.2.1.tar.gz 15.5 kB Details

Release files / python-gegl-0.2.1.tar.gz

Download URL python-gegl-0.2.1.tar.gz
Size 15.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2d137fc1d496d765e7de149395ea12aaed553283af2202d4166ce703d440881a
BLAKE2b-256 checksum
How to use checksums
a7ef4704f6edf712a85026fc0089a965ad08c3929fb2869fa78243c64d9e74cf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.1 This release

1 release file

0.2

1 release file

0.1

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page