diff options
author | toonn <toonn@toonn.io> | 2019-12-18 22:24:02 +0100 |
---|---|---|
committer | toonn <toonn@toonn.io> | 2019-12-18 22:24:02 +0100 |
commit | 45224c204b6a0f370c7f78fca1a7841b4e53f0d0 (patch) | |
tree | e5fa62a7b5bdbd0435812af3a003141da0c97f6e | |
parent | 1188d40862ebc629e6d29ae879b777437aed7a16 (diff) | |
parent | 3e566cbf151a35a04ccedbfa236a52ea4e9f50ca (diff) | |
download | ranger-45224c204b6a0f370c7f78fca1a7841b4e53f0d0.tar.gz |
Merge branch 'kdheepak-fix-python3-image-preview-iterm2'
-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 7e911848..8d1d8168 100644 --- a/ranger/ext/img_display.py +++ b/ranger/ext/img_display.py @@ -338,7 +338,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): |