Skip to content

Latest commit

 

History

History
68 lines (56 loc) · 5.73 KB

README.md

File metadata and controls

68 lines (56 loc) · 5.73 KB

Give me an avatar NuGet package icon

Give Me an Avatar

Gets a random avatar URL from a collection of different avatar generation services.

Azure DevOps builds Azure DevOps tests Nuget Nuget

Installation and usage

Library can either be directly downloaded from Nuget.org, OR installed via the NuGet Package Manager UI or via the Package Manager Console if you're using Visual Studio.

Command to install Give Me an Avatar NuGet via the Package Manager Console UI in Visual Studio shown below.

PM> Install-Package GiveMeAnAvatar

Go ahead and consume it directly.

var avatarURL = GiveMeAnAvatar.GetAvatarURL();

Or supply optional settings to get a slightly customized avatar URL.

var settings = new AvatarSettings() { Name = "John Smith", Size = 124 };
var avatarURL = GiveMeAnAvatar.GetAvatarURL(settings);

Supported avatar services

Service Avatar example
placeholder.com image
placeimg.com image
placekitten.com image
dummyimage.com image
loremflickr.com image
baconmockup.com image
placebeard.it image
fakeimg.pl image
thispersondoesnotexist.com
picsum.photos image
fillmurray.com image
placecage.com image
stevensegallery.com image
gravatar.com image
ui-avatars.com image
generative-placeholders.glitch.me image
robohash.org image image image image
avatars.dicebear.com image image image image image image
avatar.uimaterial.com image image image image

Notes

  • I'm not using avataaars separately since avatars.dicebear.com includes avataaars.
  • Placekitten image might appear broken at times in the table above, however, the image service itself runs fine.

Credits

  • All the avatar services used in this NuGet package are outlined in the table above.
  • Package logo created using AutoDraw.
  • This NuGet package is developed by Clyde D'Souza.