From b5f0744f7a664dcd7e173e4c42e876c7c0b94db7 Mon Sep 17 00:00:00 2001 From: Pavel 'LEdoian' Turinsky Date: Mon, 4 Apr 2022 09:52:25 +0200 Subject: [PATCH] Simple testing (and demonstration) script --- test.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 test.py diff --git a/test.py b/test.py new file mode 100644 index 0000000..d945cb2 --- /dev/null +++ b/test.py @@ -0,0 +1,12 @@ +orig_file = '/tmp/ceny.png' +new_file = '/tmp/new.png' + +import lib +pic = lib.Picture.load(orig_file) +pic.show() + +import nn +Interp = nn.Nearest() +pix = Interp.interpolate(pic, 200, 200) +pix.show() +pix.save(new_file)