Cloudinary supports Google plus profile picture integration.
For example, if your Cloudinary cloud name is ‘demo’, the following URL will fetch and display the profile picture of Barack Obama:
http://res.cloudinary.com/demo/image/gplus/110031535020051778989.jpg
You can create transformed versions of users’ profile pictures using your required image format and dimensions, for example:
http://res.cloudinary.com/demo/image/gplus/w_80,h_120,c_fill/110031535020051778989.jpg
When using our Ruby on Rails library, you can do the following:
gplus_profile_image_tag("110031535020051778989.jpg", :width => 80, :height => 120, :crop => :fill)
In case where profile image doesn't exist, the default avatar image will be delivered
Comments
0 comments
Please sign in to leave a comment.