diff --git a/docs/changelog.rst b/docs/changelog.rst index 9621cb879..f31fccd8f 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -19,6 +19,9 @@ To update |kitty|, :doc:`follow the instructions `. - Fix removal of inactive tab that is before the currently active tab causing the highlighted tab to be incorrect (:iss:`3516`) +- icat kitten: Respect EXIF orientation when displaying JPEG images + (:iss:`3518`) + 0.20.1 [2021-04-19] ---------------------- diff --git a/kittens/tui/images.py b/kittens/tui/images.py index 2bb95b667..787dd4e65 100644 --- a/kittens/tui/images.py +++ b/kittens/tui/images.py @@ -211,7 +211,7 @@ def render_image( # we have to coalesce, resize and de-coalesce all frames resize_cmd = ['-coalesce'] + resize_cmd + ['-deconstruct'] cmd += resize_cmd - cmd += ['-depth', '8', '-set', 'filename:f', '%w-%h-%g-%p'] + cmd += ['-depth', '8', '-auto-orient', '-set', 'filename:f', '%w-%h-%g-%p'] ans = RenderedImage(m.fmt, width, height, m.mode) if only_first_frame: ans.frames = [Frame(m.frames[0])]