From 868fdddb3882036ed5676ebb8192f95dd0708752 Mon Sep 17 00:00:00 2001 From: Elliot Wolk Date: Sat, 29 Oct 2016 14:05:36 -0400 Subject: add cmdline opt --auto-rotate to rotate according to EXIF info --- src/imlib.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/imlib.c') 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; -- cgit v1.2.3