From: moodler Date: Mon, 19 Jan 2009 05:59:47 +0000 (+0000) Subject: repository/picasa MDL-17473 Hardcode image heights and widths for nicer display X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=5d2ee151948cb2d4028d07a0b9b50f706b381a96;p=moodle.git repository/picasa MDL-17473 Hardcode image heights and widths for nicer display --- diff --git a/lib/googleapi.php b/lib/googleapi.php index a1f48ccc3a..f28e64f9a9 100644 --- a/lib/googleapi.php +++ b/lib/googleapi.php @@ -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'], ); }