Apply the correct orientation to files that may require it (JPEG/TIFF). --- tumbler-0.1.24.orig/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c +++ tumbler-0.1.24/plugins/pixbuf-thumbnailer/pixbuf-thumbnailer.c @@ -144,7 +144,7 @@ pixbuf_thumbnailer_new_from_stream (GInp GdkPixbufLoader *loader; gssize n_read; gboolean result; - GdkPixbuf *pixbuf = NULL; + GdkPixbuf *pixbuf = NULL, *rot_pixbuf = NULL; guchar buffer[65536]; g_return_val_if_fail (G_IS_INPUT_STREAM (stream), NULL); @@ -193,7 +193,14 @@ pixbuf_thumbnailer_new_from_stream (GInp g_object_unref (loader); - return pixbuf; + if (pixbuf) + { + /* apply the correct orientation to files that may require it */ + rot_pixbuf = gdk_pixbuf_apply_embedded_orientation (pixbuf); + g_object_unref (pixbuf); + } + + return rot_pixbuf; }