c190c8e660
just a test thing for now, but seems to work OK some small tweaks to help gobject-introspction
26 lines
399 B
Python
Executable File
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
|