HaithemMosbahi / ngx-avatar

Universal avatar component for angular 2+ applications makes it possible to fetch / generate avatar from different sources
MIT License
238 stars 92 forks source link

Add option to specify default value for Gravatar #156

Open RafalSkorka opened 1 year ago

RafalSkorka commented 1 year ago

Hello,

Currently, when requesting for a Gravatar image, it always defaults to 404 response from the API. However, this doesn't look good when inspecting the Network dev tools and looking for failures. It would be excellent if there was an option to specify a value for the "default" (or "d") parameter for Gravatar as described here: http://en.gravatar.com/site/implement/images/ There are number of options allowed:

The value is hardcoded to 404 here: https://github.com/HaithemMosbahi/ngx-avatar/blob/master/projects/ngx-avatar/src/lib/sources/gravatar.ts#L38

thanks!