Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gravatar highest resolution

Tags:

I show a gravatr image of users in my site. How can I know the best highest resolution to use? e.g. which parameter "s" should be.

https://secure.gravatar.com/avatar/?s=250

of course it depends in the user image, but gravatr must know the resolution of the initial image and can advise me on best highest size.

like image 240
Yaron Naveh Avatar asked Jun 26 '12 09:06

Yaron Naveh


People also ask

What size is Gravatar image?

Remember, Gravatars are square and the max upload size is 512px by 512px so setting a size larger than this may be blurry.

What is the difference between avatar and Gravatar?

An "avatar" is an image that represents you online—a little picture that appears next to your name when you interact with websites. A Gravatar is a Globally Recognized Avatar.

Does anyone use Gravatar?

Functioning much like a digital identification photo, Gravatars are widely used on many of the world's most popular websites, including Twitter, GitHub, WordPress, and Tumblr. According to Gravatar, some 8.7 billion Gravatar images are served (displayed) across the internet every single day.


3 Answers

It seems the maximum size changed drastically in the last 9 month

You may request images anywhere from 1px up to 2048px, however note that many users have lower resolution images, so requesting larger sizes may result in pixelation/low-quality images.

quoted from the Gravatar image Request tutorial

like image 118
Marc Rühl Avatar answered Oct 04 '22 17:10

Marc Rühl


I don't think it is possible, I just did some research on that matter because I have the same need, but I think Gravatar was designed for websites that will show all avatars at the same size, which means small avatars, and if it's too big for some of them, they'll be ok with the automatic upscaling.

They should include a "?s=native" to get the native size.

like image 38
PhilDenfer Avatar answered Oct 04 '22 18:10

PhilDenfer


This is what Gravatar writes about the resolution of the avatars:

You may request images anywhere from 1px up to 2048px, however note that many users have lower resolution images, so requesting larger sizes may result in pixelation/low-quality images.

The highest resolution of the default image would be 2048px:)

Read more about Gravatar images (including the default image) on https://en.gravatar.com/site/implement/images/

EDIT: You will see the picture cannot get any bigger than 2048px x 2048px even if you set s=3000:)

EDIT 2: Apparently the maximum size changed from 512px to 2048px

like image 44
ThomasCle Avatar answered Oct 04 '22 16:10

ThomasCle