repository/picasa MDL-17473 Hardcode image heights and widths for nicer display

This commit is contained in:
moodler 2009-01-19 05:59:47 +00:00
parent f4b879ddea
commit 5d2ee15194

View 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'],
);
}