Mercurial > hg > forks > geeqie
changeset 2437:f703774799a5
Fix #469: Exif rotation problems
https://github.com/BestImageViewer/geeqie/issues/469
author | Colin Clark <cclark@mcb.net> |
---|---|
date | Thu, 26 Jan 2017 10:28:21 +0000 |
parents | 8cd75e68e050 |
children | e133f99b6331 |
files | src/image.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/image.c Tue Jan 24 20:24:58 2017 +0000 +++ b/src/image.c Thu Jan 26 10:28:21 2017 +0000 @@ -413,7 +413,7 @@ break; } - if (imd->orientation != imd->image_fd->exif_orientation ? imd->image_fd->exif_orientation : 1) + if (imd->orientation != (imd->image_fd->exif_orientation ? imd->image_fd->exif_orientation : 1)) { if (!options->metadata.write_orientation) { @@ -1070,6 +1070,7 @@ here before it is taken over by the renderer. */ if (pixbuf) g_object_ref(pixbuf); + imd->orientation = EXIF_ORIENTATION_TOP_LEFT; if (imd->image_fd) { if (imd->image_fd->user_orientation)