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)
|
|
|
|
|
2012-02-28 13:05:25 +01:00
|
|
|
from vips8 import vips
|
|
|
|
|
|
|
|
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()
|
|
|
|
|