From c4c7439ae85b2a8e7fe62c850d7b049f93fdf457 Mon Sep 17 00:00:00 2001 From: pbsds Date: Tue, 4 Feb 2014 23:00:44 +0100 Subject: [PATCH] updated Hatenatools --- Hatenatools/NTFT.py | 7 +++++-- Hatenatools/ReadMe.txt | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Hatenatools/NTFT.py b/Hatenatools/NTFT.py index 6861472..3035cdc 100644 --- a/Hatenatools/NTFT.py +++ b/Hatenatools/NTFT.py @@ -223,9 +223,12 @@ def ReadImage(path): if __name__ == "__main__": print " == NTFT.py ==" print " == by pbsds ==" - print " == v0.71 ==" + print " == v0.72 ==" print + if not hasPIL: + print "PIL not found! Exiting..." + if len(sys.argv) < 3: print "Usage:" print " NTFT.py [ [ ]]" @@ -263,7 +266,7 @@ if __name__ == "__main__": if Encode: i = NTFT() i.Loaded = True - i.Image = ReadImage("NTFTtests/geh.png") + i.Image = ReadImage(input) i.WriteFile(output) else: WriteImage(NTFT().ReadFile(input, (width, height)).Image, output) diff --git a/Hatenatools/ReadMe.txt b/Hatenatools/ReadMe.txt index 5651032..badbae2 100644 --- a/Hatenatools/ReadMe.txt +++ b/Hatenatools/ReadMe.txt @@ -5,7 +5,7 @@ --VERSIONS-- PPM.py: v1.05 UGO.py: v0.92 -NTFT.py: v0.71 +NTFT.py: v0.72 --DESCRIPTION-- PPM.py can read the metadata, thumbnail, frames and the sound of Flipnote Studio files: .ppm