Skip to content

Commit

Permalink
Update color.py
Browse files Browse the repository at this point in the history
  • Loading branch information
QxBytes authored May 25, 2021
1 parent 527e0d8 commit ce2acf5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion color.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,9 @@ def fit(image, basewidth):

default_resize = 70
resize = default_resize if len(sys.argv) <= 3 else sys.argv[3]
im = fit(im, resize)
#Do not resize if -1
if resize >= 0:
im = fit(im, resize)

default_template = "#{hr}{hg}{hb} "
template = default_template if len(sys.argv) == 1 else sys.argv[1]
Expand Down

0 comments on commit ce2acf5

Please sign in to comment.