libvips/python
John Cupitt 2ea5c5f7e5 make python bandrank() work like bandjoin()
we had a custom wrapper for bandjoin(), but bandrank(), a function with
an almost identical interface, did not ... this was confusing

bandrank() now has a custom wrapper too ... this breaks API
unfortunately, but hopefully very few people were using this thing and
it's better to make this change as soon as possible
2016-03-01 12:12:51 +00:00
..
example python does auto complx/uncomplx 2015-11-20 16:29:43 +00:00
find_class_methods.py make python bandrank() work like bandjoin() 2016-03-01 12:12:51 +00:00
Makefile.am better Vips.py install 2014-12-15 18:12:47 +00:00
README.md Drop dependency on Python "future" package 2014-12-26 21:10:55 -05:00
Vips.py make python bandrank() work like bandjoin() 2016-03-01 12:12:51 +00:00

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.

Documentation

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.

Install

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 /usr/local/lib/girepository-1.0

You need pygobject-3.0. To confirm that it's installed, check that your Python dist-packages area has a directory called gi. For example:

ls /usr/lib/python2.7/dist-packages/gi

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

or

sudo cp Vips.py /usr/lib/python3/dist-packages/gi/overrides

You can optionally pre-compile this file for a small speedup.