diff options
author | Daniel Friesel <derf@finalrewind.org> | 2018-10-17 21:17:07 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2018-10-17 21:17:07 +0200 |
commit | 1e4a78c872cec48a839fbd55e430cac40e16dd9b (patch) | |
tree | f274db29e9ee100663d5e662e772c4c0fe74bff5 /src/imlib.c | |
parent | 9803fc41e8e6a820634f41d2196bdced7cbbc99f (diff) | |
parent | 0dd07456d361736b8f100c45b3edada6ef4f1e42 (diff) |
Merge branch 'complete-exif-rotations' of https://github.com/Ferada/feh into Ferada-complete-exif-rotations
Diffstat (limited to 'src/imlib.c')
-rw-r--r-- | src/imlib.c | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/imlib.c b/src/imlib.c index f41cdcd..18547a9 100644 --- a/src/imlib.c +++ b/src/imlib.c @@ -294,10 +294,22 @@ int feh_load_image(Imlib_Image * im, feh_file * file) } file->ed = exifData; - if (orientation == 3) + if (orientation == 2) + gib_imlib_image_flip_horizontal(*im); + else if (orientation == 3) gib_imlib_image_orientate(*im, 2); + else if (orientation == 4) + gib_imlib_image_flip_vertical(*im); + else if (orientation == 5) { + gib_imlib_image_orientate(*im, 3); + gib_imlib_image_flip_vertical(*im); + } else if (orientation == 6) gib_imlib_image_orientate(*im, 1); + else if (orientation == 7) { + gib_imlib_image_orientate(*im, 3); + gib_imlib_image_flip_horizontal(*im); + } else if (orientation == 8) gib_imlib_image_orientate(*im, 3); #endif |