Index: libgnomeui/gnome-thumbnail.c
===================================================================
RCS file: /cvs/gnome/libgnomeui/libgnomeui/gnome-thumbnail.c,v
retrieving revision 1.12
diff -u -r1.12 gnome-thumbnail.c
--- libgnomeui/gnome-thumbnail.c	29 May 2004 17:12:10 -0000	1.12
+++ libgnomeui/gnome-thumbnail.c	1 Jun 2004 02:56:07 -0000
@@ -1038,6 +1038,7 @@
   unsigned char *digest;
   char *path, *md5, *file, *dir;
   char *tmp_path;
+  char *width, *height;
   int tmp_fd;
   char mtime_str[21];
   gboolean saved_ok;
@@ -1090,13 +1091,20 @@
   close (tmp_fd);
   
   g_snprintf (mtime_str, 21, "%lu",  original_mtime);
+  width = g_strdup_printf ("%d", gdk_pixbuf_get_width (thumbnail));
+  height = g_strdup_printf ("%d", gdk_pixbuf_get_height (thumbnail));
   saved_ok  = gdk_pixbuf_save (thumbnail,
 			       tmp_path,
-			       "png", NULL, 
+			       "png", NULL,
+			       "tEXt::Thumb::Image::Width", width,
+			       "tEXt::Thumb::Image::Height", height,
 			       "tEXt::Thumb::URI", uri,
 			       "tEXt::Thumb::MTime", mtime_str,
 			       "tEXt::Software", "GNOME::ThumbnailFactory",
 			       NULL);
+  g_free (width);
+  g_free (height);
+
   if (saved_ok)
     {
       chmod (tmp_path, 0600);
@@ -1621,4 +1629,3 @@
     buf[2] += c;
     buf[3] += d;
 }
-
