14

I want to download the avatar photo from my personal Gravatar profile.

I've unsuccessfully tried:

  • Clicking the photo on my profile. (Leads to resized 80x80 image)
  • Right-clicking my profile's photo and select Save image as (Option not available)
  • Searching the My Gravatars page.
  • Viewing my account's Photo Gallery.

Is there a way to download my personal profile icon from Gravatar?

2 Answers 2

13

You can request anyone's avatar with curl like this on MacOS X:

curl "http://gravatar.com/avatar/$(md5 -q -s [email protected])?s=300" > avatar.jpeg

Or like this on Linux:

curl "http://gravatar.com/avatar/$(echo -n "[email protected]" | md5sum - | cut -d' ' -f1)?s=300" > avatar.jpeg

Replacing [email protected] with your (or anyone else's) email address, and 300 with the pixel size (up to 2048). For example, s=300 will get you a 300x300 pixel image.

If you don't have access to a Unix command line, or would like to figure out the URL to enter directly, you'll need to generate the MD5 checksum of the email address. You can do that via various online tools, like this one.

Once you have the MD5 checksum, just plug it into the URL. For example, mine is 51e61f099c7b1ac0588ecda69193f75c, so my Gravatar URL is http://gravatar.com/avatar/51e61f099c7b1ac0588ecda69193f75c?s=300 for a 300x300 JPEG.

5
  • Nice, however it downloads in JPEG format, not PNG. Do you know how to download PNG? I've tried without success adding .png after the hash before the size. Commented Nov 26, 2019 at 12:07
  • If you're using PHP you can use the command md5 to generate the hash. More instructions here about PNG output en.gravatar.com/site/implement/images Commented Dec 15, 2019 at 13:41
  • It was png for me...
    – rogerdpack
    Commented May 14, 2020 at 17:54
  • 1
    note the hash needs to be lowercase. Commented Apr 30, 2021 at 19:07
  • Its a png, and there is a redirect, which curl doesnt follow by default. So on macOS the command should be curl -L "http://gravatar.com/avatar/$(md5 -q -s [email protected])?s=300" > avatar.png
    – Cyberwiz
    Commented Sep 9 at 17:04
-1

Have you tried getting the link to the image source from the webpage source code (for example via inspect element)? Worked just fine for me.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.