File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change 4
4
from PIL import Image
5
5
num = 1
6
6
# 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
+
7
17
def get_file_name (num ):
8
18
snum = str (num )
9
19
listed = list (snum )
@@ -20,5 +30,5 @@ def get_file_name(num):
20
30
21
31
for i in range (1 ,3286 ):
22
32
image = Image .open (get_file_name (i ))
23
- image = image .resize ((142 , 36 ))
33
+ image = image .resize ((x , y ))
24
34
image .save (f'new{ i } .png' )
You can’t perform that action at this time.
0 commit comments