Index: gdk-pixbuf/io-tiff.c
===================================================================
--- gdk-pixbuf/io-tiff.c	(revision 17616)
+++ gdk-pixbuf/io-tiff.c	(working copy)
@@ -326,7 +326,16 @@
 
 	if (context && context->update_func)
 		(* context->update_func) (pixbuf, 0, 0, width, height, context->user_data);
-        
+
+        /* if orientation tag was found set an option to remember its value */
+        uint16 orientation = 0;
+        TIFFGetField (tiff, TIFFTAG_ORIENTATION, &orientation);
+        if (orientation >= 1 && orientation <= 8) {
+                gchar str[5];
+                snprintf(str, sizeof(str), "%d", orientation);
+                gdk_pixbuf_set_option(pixbuf, "orientation", str);
+        }
+
         return pixbuf;
 }
 
