Skip to content

Commit 338b2ff

Browse files
authored
Added 1.2 version support for convert.py
added a calibration system for the window sizing feature
1 parent cfb5c3f commit 338b2ff

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

convert.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,16 @@
44
from PIL import Image
55
num = 1
66
# list of all files
7+
print("Hey! This part of the code breaks a lot so listen up! *press enter to continue*")
8+
input()
9+
print("Find the correct size of your terminal. Example sizes are 500x200 or anything like that *press enter to continue*")
10+
input()
11+
print("Once you found your terminal size press enter!")
12+
input()
13+
x = input("How *long* is your terminal window aka. How many charectors fit on one line: ")
14+
y = input("How *tall* is your terminal window aka. How many charectors fit vertically in the window: ")
15+
print("If the program looks weird it's because the values are inncorrect")
16+
717
def get_file_name(num):
818
snum = str(num)
919
listed = list(snum)
@@ -20,5 +30,5 @@ def get_file_name(num):
2030

2131
for i in range(1,3286):
2232
image = Image.open(get_file_name(i))
23-
image = image.resize((142,36))
33+
image = image.resize((x,y))
2434
image.save(f'new{i}.png')

0 commit comments

Comments
 (0)