Skip to content

Commit

Permalink
tuned some parameter for better viewing
Browse files Browse the repository at this point in the history
  • Loading branch information
Bill committed Mar 29, 2018
1 parent e6b013d commit eda6344
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion color/img2txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def draw_with_color(img_path, post_info):
maxLen = 100.0 # default maxlen: 100px
fontSize = 7
bgcolor = None
target_aspect_ratio = 0.5
target_aspect_ratio = 0.3
img = load_and_resize_image(img_path, bgcolor, maxLen, target_aspect_ratio)
# get pixels
pixel = img.load()
Expand Down
2 changes: 1 addition & 1 deletion display.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def display_to_terminal(posts_info, display_color):
img_path = './images/' + filename
if display_color:
draw_with_color(img_path, posts_info[filename])
time.sleep(1)
time.sleep(2)
else:
draw(img_path, posts_info[filename])

Expand Down

0 comments on commit eda6344

Please sign in to comment.