I am using and it working fine, Problem is that it down scales the image to 96 X 96. If i upload same image from google dashboard, it makes the image crop then saves in good quality.
service.users.photos.update(
{
userKey: req.user.email,
auth: jwtClient,
requestBody: {
photoData: newfile,
width: '800',
height: '800',
kind: 'admin#directory#user#photo'
}
},
(err, response) => {
console.log(err);
console.log(response);
}
);