This commit is contained in:
pbsds committed 2014-02-04 22:55:36 +01:00
1 parent e760cafd8e
commit eb24d46ab5
1 file changed
+5 -2
+5 -2
View File
@@ -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 <input> [<output> [<width> <height>]]"
@@ -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)