]> git.mjollnir.org Git - moodle.git/commitdiff
repository/picasa MDL-17473 Hardcode image heights and widths for nicer display
authormoodler <moodler>
Mon, 19 Jan 2009 05:59:47 +0000 (05:59 +0000)
committermoodler <moodler>
Mon, 19 Jan 2009 05:59:47 +0000 (05:59 +0000)
lib/googleapi.php

index a1f48ccc3ae439687a4d5888aad3c545c61994cf..f28e64f9a90b721f6d8063fe5376d63cb48a09cb 100644 (file)
@@ -401,8 +401,8 @@ class google_picasa {
                 'size'  => (int) $gphoto->bytesUsed,
                 'path'  => (string) $gphoto->id,
                 'thumbnail' => (string) $thumbnailinfo['url'],
-                'thumbnail_width' => (int) $thumbnailinfo['width'],
-                'thumbnail_height' => (int) $thumbnailinfo['height'],
+                'thumbnail_width' => 160,  // 160 is the native maximum dimension
+                'thumbnail_height' => 160,
                 'children' => array(),
             );
 
@@ -437,8 +437,8 @@ class google_picasa {
                 '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' => 72,  // 72 is the native maximum dimension
+                'thumbnail_height' => 72,
                 'source' => (string) $fullinfo['url'],
             );
         }