updated Hatenatools
This commit is contained in:
1 parent
e5ac8edd21
commit
c4c7439ae8
2 files changed
+6
-3
No files matched your search
+5
-2
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user
