Skip to content

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

License

Notifications You must be signed in to change notification settings

ClydeDz/give-me-an-avatar-nuget

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation


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.