libvips/python/example/try9.py

15 lines
222 B
Python
Raw Normal View History

2014-09-06 00:18:16 +02:00
#!/usr/bin/python
import sys
2014-09-07 10:36:34 +02:00
import logging
logging.basicConfig(level = logging.DEBUG)
2014-09-06 00:18:16 +02:00
import gi
gi.require_version('Vips', '8.0')
2014-09-06 00:18:16 +02:00
from gi.repository import Vips
2014-09-07 10:36:34 +02:00
2014-09-06 00:18:16 +02:00
a = Vips.Image.black(100, 100)
2014-09-07 10:36:34 +02:00
a.write_to_file("x.v")