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:
- 404: do not load any image if none is associated with the email hash, instead return an HTTP 404 (File Not Found) response
- mp: (mystery-person) a simple, cartoon-style silhouetted outline of a person (does not vary by email hash)
- identicon: a geometric pattern based on an email hash
- monsterid: a generated 'monster' with different colors, faces, etc
- wavatar: generated faces with differing features and backgrounds
- retro: awesome generated, 8-bit arcade-style pixelated faces
- robohash: a generated robot with different colors, faces, etc
- blank: a transparent PNG image (border added to HTML below for demonstration purposes)
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!
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!