mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-24 01:08:10 +02:00
icat kitten: Respect EXIF orientation when displaying JPEG images
Fixes #3518
This commit is contained in:
@@ -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])]
|
||||
|
||||
Reference in New Issue
Block a user