I have been trying to use Gravator's Identicon as the fallback image, is there is no image for a given user in a predefined image folder.
consider the following scenario;
User email : firstname.lastname@example.org
an image is uploaded to
wp-content/images/users/ with the file name
0eb178cec364c022a189c3814e5f7483.jpg (The file name is generated with
If an imaage file is available as
wp-content/images/users/0eb178cec364c022a189c3814e5f7483.jpg, I need to show that image as the users avatar. If there is no such image, Gravatar will be shown.
So far I have tried using the Gravatar as the background, but there is a broken image icon shown if a custom image is not available.
I am looking for non-plugin solution as all the plugins use default uploads folder and create many thumbnails even for this purpose, which is fully unnecessary. I couldn't find any plugins which tick all the boxes. Any help is appreciated.