Can something like UI-Avatars be added into the MODx user profile system when a regular photo isn’t available? Or added as a plugin option or something.
And, can a small preview of whatever image is attached or auto generated be displayed in the user’s profile page?
It’s not completely clear to me what exactly you are trying to achieve.
MODX has Gravatar integrated that generates a user image. In MODX 3 it has to be enabled by changing the system setting enable_gravatar
.
Or if you manage your users in the MODX manager, you could write a plugin that runs on the event OnUserFormSave
and creates an image and saves it to a folder if the user field “photo” is empty.
Isn’t Gravatar a third party website? Or is the integration something different from Gravatar.com?
Your second paragraph is what I was trying to achieve. If the image field is empty then create a letter avatar from the user name, like what the forum here is doing.

Yes, it gets the image from gravatar.com
(if you enable it in the system settings):