X-Git-Url: https://vcs.fsf.org/?p=rainbowstream.git;a=blobdiff_plain;f=rainbowstream%2Frainbow.py;h=b15ef593111f8746e293f9ba6211e8dbce52aa55;hp=114e42514d7fe71aa3930041bc84dee75975ba87;hb=992c5266642ad2767bd0bcff257dcb1d7b635bd5;hpb=9b48127c4646244c7893350c3522c1fa6b9a742a diff --git a/rainbowstream/rainbow.py b/rainbowstream/rainbow.py index 114e425..b15ef59 100644 --- a/rainbowstream/rainbow.py +++ b/rainbowstream/rainbow.py @@ -242,6 +242,8 @@ def init(args): set_config('IMAGE_ON_TERM', str(c['IMAGE_ON_TERM'])) # Use 24 bit color c['24BIT'] = args.color_24bit + # Resize images based on the current terminal size + set_config('IMAGE_RESIZE_TO_FIT', str(c.get('IMAGE_RESIZE_TO_FIT', False))) # Check type of ONLY_LIST and IGNORE_LIST if not isinstance(c['ONLY_LIST'], list): printNicely(red('ONLY_LIST is not a valid list value.'))