Based on a conversation that started on T167312: Add support for showing avatars on Flow boards when the SocialProfile extension is installed:
One overview of some of the complexities involved, is given at https://www.mediawiki.org/wiki/User:Isarra/Avatars
Other complexities include: Selfies at Commons, different cross-project cultural expectations/guidelines, page-size bloat for mobile users, ...