libvips/python/try2.py
John Cupitt c190c8e660 new Python binding
just a test thing for now, but seems to work OK

some small tweaks to help gobject-introspction
2012-01-05 13:26:25 +00:00

26 lines
399 B
Python
Executable File

#!/usr/bin/python
import logging
logging.basicConfig(level = logging.DEBUG)
from vips8 import vips
try:
a = vips.Image("/home/john/pics/babe.poop")
except vips.Error, e:
print e
a = vips.Image("/home/john/pics/babe.jpg")
b = vips.Image("/home/john/pics/xmaspank2b.jpg")
print 'a =', a
print 'b =', b
out = vips.call("add", a, b)
print 'out =', out
out = a.add(b)
print 'out =', out