Avatar image size
-
How can I change the Google user avatar picture size? The default size is 64x64px which is a too low resolution for our needs. We need to get it at least 200x200px big.
Can someone please tell me what to change in this code in nextend-google-connect.php file: `// @jamie Bainbridge fix for Google Avatars
$userJSON = @file_get_contents(‘https://picasaweb.google.com/data/entry/api/user/’ . $u[‘id’] .’?alt=json’);
if($userJSON){
$userArray = json_decode($userJSON, true);
if($userArray && isset($userArray[“entry”]) && isset($userArray[“entry”][“gphoto\$thumbnail”]) && isset($userArray[“entry”][“gphoto\$thumbnail”][“\$t”])){
update_user_meta($ID, ‘google_profile_picture’, $userArray[“entry”][“gphoto\$thumbnail”][“\$t”]);
}
}`Thank you in advance!
- The topic ‘Avatar image size’ is closed to new replies.