banter done for now
This commit is contained in:
parent
042e4ba262
commit
7092ff4ded
@ -20,9 +20,8 @@ def main(imgPath, delay, ASCIIWIDTH, COLORCHAR, FILLER, fileType):
|
|||||||
os.remove(f)
|
os.remove(f)
|
||||||
if os.path.exists("output.txt"):
|
if os.path.exists("output.txt"):
|
||||||
os.remove("output.txt")
|
os.remove("output.txt")
|
||||||
print(imgPath)
|
|
||||||
print('URL')
|
print('URL')
|
||||||
print('Downloading: ' + "/home/node/app/image." + fileType)
|
print('Downloading image to ' + "/home/node/app/image." + fileType)
|
||||||
wget.download(imgPath, "/home/node/app/image." + fileType)
|
wget.download(imgPath, "/home/node/app/image." + fileType)
|
||||||
#subprocess.run(["wget", imgPath, "-o", "image." + fileType])
|
#subprocess.run(["wget", imgPath, "-o", "image." + fileType])
|
||||||
if fileType == "png":
|
if fileType == "png":
|
||||||
@ -32,7 +31,6 @@ def main(imgPath, delay, ASCIIWIDTH, COLORCHAR, FILLER, fileType):
|
|||||||
print('JPG')
|
print('JPG')
|
||||||
imgPath = "/home/node/app/image.jpg"
|
imgPath = "/home/node/app/image.jpg"
|
||||||
|
|
||||||
print(imgPath)
|
|
||||||
im = Image.open(imgPath, 'r')
|
im = Image.open(imgPath, 'r')
|
||||||
im = ImageOps.scale(im, ASCIIWIDTH / im.width)
|
im = ImageOps.scale(im, ASCIIWIDTH / im.width)
|
||||||
width, height = im.size
|
width, height = im.size
|
||||||
@ -76,7 +74,7 @@ if __name__ == "__main__":
|
|||||||
args.file,
|
args.file,
|
||||||
float(args.d),
|
float(args.d),
|
||||||
int(args.w),
|
int(args.w),
|
||||||
|
str(args.t),
|
||||||
args.colorfmt.encode().decode("unicode_escape"),
|
args.colorfmt.encode().decode("unicode_escape"),
|
||||||
args.filler.encode().decode("unicode_escape"),
|
args.filler.encode().decode("unicode_escape")
|
||||||
str(args.t)
|
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user