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