diff options
author | Elliot Wolk <elliot.wolk@gmail.com> | 2016-10-29 14:05:36 -0400 |
---|---|---|
committer | Elliot Wolk <elliot.wolk@gmail.com> | 2016-10-29 14:14:45 -0400 |
commit | 868fdddb3882036ed5676ebb8192f95dd0708752 (patch) | |
tree | 8323bcf34eff85615e4d2c37eda9e415faec7cf7 /src/imlib.c | |
parent | 465238bdddb11d00926dcaa76ffe2f59fb536df5 (diff) |
add cmdline opt --auto-rotate to rotate according to EXIF info
Diffstat (limited to 'src/imlib.c')
-rw-r--r-- | src/imlib.c | 2 |
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; |