diff options
author | Dheepak Krishnamurthy <kdheepak89@gmail.com> | 2019-06-20 03:01:47 -0600 |
---|---|---|
committer | Dheepak Krishnamurthy <kdheepak89@gmail.com> | 2019-06-20 03:01:47 -0600 |
commit | 3e566cbf151a35a04ccedbfa236a52ea4e9f50ca (patch) | |
tree | 0c1debeda82e30fcc54d244b94485549e294f19e | |
parent | 9ce8a9d9c39ab63736c8df112cbaaad0a38def23 (diff) | |
download | ranger-3e566cbf151a35a04ccedbfa236a52ea4e9f50ca.tar.gz |
Return decoded string instead of byte string of image
-rw-r--r-- | ranger/ext/img_display.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ranger/ext/img_display.py b/ranger/ext/img_display.py index 2cce5c7a..6bea52f4 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -308,7 +308,7 @@ class ITerm2ImageDisplayer(ImageDisplayer, FileManagerAware): def _encode_image_content(path): """Read and encode the contents of path""" with open(path, 'rb') as fobj: - return base64.b64encode(fobj.read()) + return base64.b64encode(fobj.read()).decode('utf-8') @staticmethod def _get_image_dimensions(path): |