From 5d2ee151948cb2d4028d07a0b9b50f706b381a96 Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 19 Jan 2009 05:59:47 +0000 Subject: [PATCH] repository/picasa MDL-17473 Hardcode image heights and widths for nicer display --- lib/googleapi.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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'], ); } -- 2.39.5