summaryrefslogtreecommitdiff
path: root/src/imlib.c
diff options
context:
space:
mode:
authorElliot Wolk <elliot.wolk@gmail.com>2016-10-29 14:05:36 -0400
committerElliot Wolk <elliot.wolk@gmail.com>2016-10-29 14:14:45 -0400
commit868fdddb3882036ed5676ebb8192f95dd0708752 (patch)
tree8323bcf34eff85615e4d2c37eda9e415faec7cf7 /src/imlib.c
parent465238bdddb11d00926dcaa76ffe2f59fb536df5 (diff)
add cmdline opt --auto-rotate to rotate according to EXIF info
Diffstat (limited to 'src/imlib.c')
-rw-r--r--src/imlib.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/imlib.c b/src/imlib.c
index 1cf2e5b..fd78d0c 100644
--- a/src/imlib.c
+++ b/src/imlib.c
@@ -264,7 +264,7 @@ int feh_load_image(Imlib_Image * im, feh_file * file)
if (exifData) {
ExifByteOrder byteOrder = exif_data_get_byte_order(exifData);
ExifEntry *exifEntry = exif_data_get_entry(exifData, EXIF_TAG_ORIENTATION);
- if (exifEntry)
+ if (exifEntry && opt.auto_rotate)
orientation = exif_get_short(exifEntry->data, byteOrder);
}
file->ed = exifData;