23 lines
417 B
Python
23 lines
417 B
Python
import logging
|
|
|
|
from PIL import Image
|
|
import ctif
|
|
|
|
|
|
FORMAT = "%(levelname)s %(filename)s - %(message)s"
|
|
logging.basicConfig(level=logging.DEBUG, format=FORMAT)
|
|
|
|
IMAGE_PATH = 'sample-images/engine.PNG'
|
|
|
|
def main():
|
|
|
|
image = Image.open(IMAGE_PATH)
|
|
i = ctif.CTIF(image)
|
|
i.save_edges('debug/edges-render.png')
|
|
i.save_image('render.png')
|
|
# i.save_citf('engine')
|
|
|
|
if __name__ == '__main__':
|
|
main()
|
|
|