-
-
Save egel/c5e0b8c59221bf92481f to your computer and use it in GitHub Desktop.
Download Gravatar image for an email address
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
SIZE=500 | |
EMAIL="maciejsypien@gmail.com" | |
curl "http://www.gravatar.com/avatar/$(echo -n ${EMAIL} | md5sum | awk '{print $1}')?s=${SIZE}" > gravatar.png |
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
or single command (change
email
andsize
):