We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bb875b commit 52c81fdCopy full SHA for 52c81fd
ascii_image/ascii_image.py
@@ -26,7 +26,7 @@
26
img = Image.open(inputImagePath)
27
28
wid, height = img.size
29
-img = img.resize((widd, int(widd*((height*9)/(wid*20)))))
+img = img.resize((widd, int(widd * ((height * 9) / (wid * 20)))))
30
31
32
img = img.convert("L")
@@ -42,8 +42,8 @@ def avg(imggg):
42
for j in range(height):
43
for i in range(wid):
44
img1 = img.crop((i, int(j), i + 1, int((j + 1))))
45
- f.write(asci[int((avg(img1) * 9)/255)])
46
- print(asci[int((avg(img1) * 9)/255)], end="")
+ f.write(asci[int((avg(img1) * 9) / 255)])
+ print(asci[int((avg(img1) * 9) / 255)], end="")
47
print("\n", end="")
48
f.write("\n")
49
0 commit comments