vips8 binding for Python
This overrides file adds a few small helper functions to the gobject-introspection binding for libvips. It has been tested with python2.7 and python3.4 and may work for other versions.
There's a chapter in the libvips API docs on these overrides, see "Using libvips from Python".
vips-x.y.z/test has a test suite. Again, the test suite works with python2.7 and python3.4.
libvips need to be built and installed.
The libvips typelib,
Vips-8.0.typelib, needs to be on your
GI_TYPELIB_PATH. It is typically installed somewhere like
pygobject-3.0. To confirm that it's installed, check that your
dist-packages area has a directory called
gi. For example:
Vips.py needs to be in the overrides directory of your gobject-introspection
pygobject area, for example:
sudo cp Vips.py /usr/lib/python2.7/dist-packages/gi/overrides
sudo cp Vips.py /usr/lib/python3/dist-packages/gi/overrides
You can optionally pre-compile this file for a small speedup.