Using the Zinc HTTP library, get a photo from an email address through gravatar http://www.gravatar.com/avatar/. Convert it into a morph and open it in Pharo. Using stephane.ducasse@inria.fr so that you are sure to get a .jpg. The result should look like situation shown in the figure below.
http://www.gravatar.com/avatar/(MD5 email-based hex).jpg
MD5 hashMessage:
.Pay attention that you should convert its result in hexadecimal.asMorph
convert pictures into Morphs.openInHand
is fun. | email url |
email := 'stephane.ducasse@inria.fr'.
url := 'http://www.gravatar.com/avatar/', (MD5 hashMessage: email trimBoth asLowercase) hex, '.jpg'.
(ZnEasy getJpeg: url) asMorph openInHand.