summaryrefslogtreecommitdiffstats
path: root/thumbs.c
diff options
context:
space:
mode:
authorBert Münnich <ber.t@gmx.com>2012-02-15 19:13:44 +0100
committerBert Münnich <ber.t@gmx.com>2012-02-15 19:13:44 +0100
commit691c6d7e7e7667696dcf5996316fba6a120f2e7b (patch)
tree9f15fc97b55a8536d24fce3aad1646a05d686fb2 /thumbs.c
parentb752d5c594d5aac083cc563e8c7e575baf7b8edc (diff)
downloadnsxiv-691c6d7e7e7667696dcf5996316fba6a120f2e7b.tar.zst
Added own exif tag handling in files exif.[ch]
Diffstat (limited to 'thumbs.c')
-rw-r--r--thumbs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/thumbs.c b/thumbs.c
index 31a1f89..420547a 100644
--- a/thumbs.c
+++ b/thumbs.c
@@ -26,6 +26,7 @@
#include <unistd.h>
#include <utime.h>
+#include "exif.h"
#include "thumbs.h"
#include "util.h"
#include "config.h"
@@ -254,6 +255,8 @@ bool tns_load(tns_t *tns, int n, const fileinfo_t *file,
imlib_free_image_and_decache();
return false;
}
+ if (STREQ(fmt, "jpeg"))
+ exif_auto_orientate(file);
w = imlib_image_get_width();
h = imlib_image_get_height();