Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Get large Google Plus photo via URL change (lh3.googleusercontent.com)

I am using Google Plus as a login, capturing users information etc.

The profile picture I am saving looks like the following :

https://lh4.googleusercontent.com/-ahWlp0z8KQM/AAAAAAAAAAI/AAAAAAAAAGA/nEfC5WjfVM4/photo.jpg

I am trying to get the various sizes e.g. small and large.

Is there some way I can just add an URL variable like ?size=small or just a change in URL?? Is there any way?

like image 918
Marc Uberstein Avatar asked Nov 30 '22 14:11

Marc Uberstein


1 Answers

You can also pass the sz query parameter to resize the image.

Passing ?sz=10 will resize the original image to a 10x10 image.

https://lh4.googleusercontent.com/-ahWlp0z8KQM/AAAAAAAAAAI/AAAAAAAAAGA/nEfC5WjfVM4/photo.jpg?sz=10
like image 56
Chirag Shah Avatar answered Dec 04 '22 23:12

Chirag Shah