Commit b928208c authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

Fix lossless rotation if jpegexiforient is unavailable (closes #100)

parent 5f49aad4
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
Thu, 27 Sep 2012 16:48:48 +0200  Daniel Friesel <derf+feh@finalrewind.org>

    * Fix segfault when doing lossless mirror/rotate and jpegexiforient is
      not present <https://github.com/derf/feh/issues/100>

Wed, 26 Sep 2012 17:06:50 +0200  Daniel Friesel <derf+feh@finalrewind.org>

    * Set EXIF orientation tag to 1 ("0,0 is top left" aka normal) after
+3 −4
Original line number Diff line number Diff line
@@ -1198,10 +1198,9 @@ void feh_edit_inplace_lossless(winwidget w, int op)

		if (!WIFEXITED(status) || WEXITSTATUS(status) != 0) {
			im_weprintf(w,
					"lossless %s: Got exitcode %d from jpegexiforient",
					status >> 8);
			free(file_str);
			return;
					"lossless %s: Failed to update EXIF orientation tag:"
					" jpegexiforient returned %d",
					op_name, status >> 8);
		}
	}
	free(file_str);