ZnClient new
https;
host: '
ui-avatars.com';
addPath: #api;
queryAt: #name put: 'Albert Einstein';
queryAt: #size put: 128;
queryAt: #color put: 'FFF';
queryAt: #background put: '0D8ABC';
queryAt: #rounded put: true;
accept: ZnMimeType imagePng;
enforceHttpSuccess: true;
enforceAcceptContentType: true;
contentReader: [ :entity | ImageReadWriter formFromStream: entity readStream ];
beOneShot;
get.
Anyway, it is cool to have an environment that makes this kind of experimentation so much fun.
It is probably easy to implement this avatar image generation directly in Pharo ...