mirror of
https://github.com/RekuNote/Hatenatools3.git
synced 2026-10-30 16:19: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__":
|
if __name__ == "__main__":
|
||||||
print " == NTFT.py =="
|
print " == NTFT.py =="
|
||||||
print " == by pbsds =="
|
print " == by pbsds =="
|
||||||
print " == v0.71 =="
|
print " == v0.72 =="
|
||||||
print
|
print
|
||||||
|
|
||||||
|
if not hasPIL:
|
||||||
|
print "PIL not found! Exiting..."
|
||||||
|
|
||||||
if len(sys.argv) < 3:
|
if len(sys.argv) < 3:
|
||||||
print "Usage:"
|
print "Usage:"
|
||||||
print " NTFT.py <input> [<output> [<width> <height>]]"
|
print " NTFT.py <input> [<output> [<width> <height>]]"
|
||||||
@@ -263,7 +266,7 @@ if __name__ == "__main__":
|
|||||||
if Encode:
|
if Encode:
|
||||||
i = NTFT()
|
i = NTFT()
|
||||||
i.Loaded = True
|
i.Loaded = True
|
||||||
i.Image = ReadImage("NTFTtests/geh.png")
|
i.Image = ReadImage(input)
|
||||||
i.WriteFile(output)
|
i.WriteFile(output)
|
||||||
else:
|
else:
|
||||||
WriteImage(NTFT().ReadFile(input, (width, height)).Image, output)
|
WriteImage(NTFT().ReadFile(input, (width, height)).Image, output)
|
||||||
|
|||||||
Reference in new issue
Block a user
