2012-02-28 13:05:25 +01:00
|
|
|
#!/usr/bin/python
|
|
|
|
|
|
|
|
import sys
|
2014-08-29 18:33:14 +02:00
|
|
|
|
|
|
|
#import logging
|
|
|
|
#logging.basicConfig(level = logging.DEBUG)
|
|
|
|
|
2016-05-18 14:41:41 +02:00
|
|
|
import gi
|
|
|
|
gi.require_version('Vips', '8.0')
|
2012-02-28 13:05:25 +01:00
|
|
|
from gi.repository import Vips
|
2014-08-29 18:33:14 +02:00
|
|
|
|
2012-02-28 13:05:25 +01:00
|
|
|
Vips.cache_set_trace(True)
|
|
|
|
|
2014-08-29 18:33:14 +02:00
|
|
|
a = Vips.Image.new_from_file(sys.argv[1])
|
2012-02-28 13:05:25 +01:00
|
|
|
print a.max()
|
|
|
|
print a.max()
|
|
|
|
|