Skip to content

Instantly share code, notes, and snippets.

@egel
Forked from kristopherjohnson/gravatar.sh
Last active February 12, 2021 22:46
Embed
What would you like to do?
Download Gravatar image for an email address
SIZE=500
EMAIL="maciejsypien@gmail.com"
curl "http://www.gravatar.com/avatar/$(echo -n ${EMAIL} | md5sum | awk '{print $1}')?s=${SIZE}" > gravatar.png
@egel
Copy link
Author

egel commented Feb 25, 2017

or single command (change email and size):

curl "http://www.gravatar.com/avatar/$(echo -n "maciejsypien@gmail.com" | md5sum | awk '{print $1}')?s=500" > gravatar.png

@egel
Copy link
Author

egel commented Mar 11, 2017

For OSX

curl -o yourname.png http://www.gravatar.com/avatar/$\(md5 -q -s maciejsypien@gmail.com\)?s=1000

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment