mirror of
https://github.com/RekuNote/Hatenatools3.git
synced 2026-10-30 00:09:13 +00:00
Whoops
This commit is contained in:
1 parent
e760cafd8e
commit
eb24d46ab5
1 file changed
+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
