libvips/python/try3.py

18 lines
247 B
Python
Raw Normal View History

#!/usr/bin/python
import sys
2014-08-29 18:33:14 +02:00
#import logging
#logging.basicConfig(level = logging.DEBUG)
from vips8 import vips
from gi.repository import Vips
2014-08-29 18:33:14 +02:00
Vips.cache_set_trace(True)
2014-08-29 18:33:14 +02:00
a = Vips.Image.new_from_file(sys.argv[1])
print a.max()
print a.max()