Index: gdk-pixbuf/io-tiff.c
===================================================================
--- gdk-pixbuf/io-tiff.c	(revision 17616)
+++ gdk-pixbuf/io-tiff.c	(working copy)
@@ -365,6 +365,15 @@
         }
 
         pixbuf = tiff_image_parse (tiff, NULL, error);
+
+        /* 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);
+        }
         
         TIFFClose (tiff);
         if (global_error) {
