aboutsummaryrefslogtreecommitdiff
path: root/thumbs.c
diff options
context:
space:
mode:
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();