function _image_ncck_picasa_guess_size in Embedded Media Field 5
1 call to _image_ncck_picasa_guess_size()
- image_ncck_picasa_image_url in contrib/
image_ncck/ providers/ picasa.inc - implement image_ncck_PROVIDER_image_url
File
- contrib/
image_ncck/ providers/ picasa.inc, line 153
Code
function _image_ncck_picasa_guess_size($width, $height) {
$max = max($width, $height);
foreach (array(
'144' => 144,
'288' => 288,
'400' => 400,
'800' => 800,
) as $size => $value) {
if ($max <= $value) {
return $size;
}
}
// we would use the original size if we could, but we can't since google won't serve it
return '800';
}