-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunner.py
33 lines (26 loc) · 883 Bytes
/
runner.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
from basic import *
from chiseler import chiseler
from compresser import compresser
from color_provider import color_provider
from git_image_preview import git_image_preview
import sys
def test(img):
check_image_size_ratio(img)
dimention,image =compresser(img)
print(image)
git_im,image = color_provider(image)
# make image of a size
image = git_image_preview(image,dimention)
# save image of Results of future commits on git
write_image(image)
# save git file for reading later
git_commit_file_for_server(git_im)
# show image
show_image(read_image(img),'real_image press ESC ')
show_image(create_readable_image(image),'Results press ESC ')
print()
print('your files are saved in folder name server-files upload them to your server and run it in background ')
print()
if __name__ == '__main__':
test(sys.argv[1])
# test(im6)