icat kitten: Respect EXIF orientation when displaying JPEG images

Fixes #3518
This commit is contained in:
Kovid Goyal 2021-04-23 07:31:37 +05:30
parent 237fd73702
commit 6dc8df5178
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 1 deletions

View File

@ -19,6 +19,9 @@ To update |kitty|, :doc:`follow the instructions <binary>`.
- 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]
----------------------

View File

@ -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])]