Index: googleapi.php
===================================================================
RCS file: /cvsroot/moodle/moodle/lib/googleapi.php,v
retrieving revision 1.2
diff -u -r1.2 googleapi.php
--- googleapi.php	30 Nov 2008 17:37:06 -0000	1.2
+++ googleapi.php	14 Jan 2009 03:44:08 -0000
@@ -401,8 +401,12 @@
                 'size'  => (int) $gphoto->bytesUsed,
                 'path'  => (string) $gphoto->id,
                 'thumbnail' => (string) $thumbnailinfo['url'],
-                'thumbnail_width' => (int) $thumbnailinfo['width'],
-                'thumbnail_height' => (int) $thumbnailinfo['height'],
+                //'thumbnail_width' => (int) $thumbnailinfo['width'],
+                //'thumbnail_height' => (int) $thumbnailinfo['height'],
+                // use a bigger value for width and height to make
+                // file picker look better
+                'thumbnail_width' => 150,
+                'thumbnail_height' => 120,
                 'children' => array(),
             );
 
@@ -437,8 +441,12 @@
                 'size' => (int) $gphoto->size,
                 'path' => $gphoto->albumid.'/'.$gphoto->id,
                 'thumbnail' => (string) $thumbnailinfo['url'],
-                'thumbnail_width' => (int) $thumbnailinfo['width'],
-                'thumbnail_height' => (int) $thumbnailinfo['height'],
+                //'thumbnail_width' => (int) $thumbnailinfo['width'],
+                //'thumbnail_height' => (int) $thumbnailinfo['height'],
+                // use a bigger value for width and height to make
+                // file picker look better
+                'thumbnail_width' => 150,
+                'thumbnail_height' => 120,
                 'source' => (string) $fullinfo['url'],
             );
         }
