libvips/python/example/try3.py

18 lines
267 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)
import gi
gi.require_version('Vips', '8.0')
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()