peSHIr.Gravatar
1.0.0
Prefix Reserved
dotnet add package peSHIr.Gravatar --version 1.0.0
NuGet\Install-Package peSHIr.Gravatar -Version 1.0.0
<PackageReference Include="peSHIr.Gravatar" Version="1.0.0" />
<PackageVersion Include="peSHIr.Gravatar" Version="1.0.0" />
<PackageReference Include="peSHIr.Gravatar" />
paket add peSHIr.Gravatar --version 1.0.0
#r "nuget: peSHIr.Gravatar, 1.0.0"
#:package peSHIr.Gravatar@1.0.0
#addin nuget:?package=peSHIr.Gravatar&version=1.0.0
#tool nuget:?package=peSHIr.Gravatar&version=1.0.0
About
What's this?
This library contains some code to easily interact with the gravatar.com website, retrieving URIs and images for users by their email address.
Who created this?
My name is Jarno Peschier. I started programming on a Commodore 64 in high school, got a masters degree in Computer Science at Utrecht University near the end of the 20th century, specializing in GIS algorithms, and I have been developing software all my professional life.
In 2025 I started publishing some NuGet packages while working as a software engineer at Dutch engineering firm Iv, where I personally handled all software development around our scan vehicle (YouTube) using multiple third party software packages, C#, and PowerShell.
You might also know me by my online name of peSHIr, which is basically the way you write my last name phonetically in Klingon.
How do I use it?
using peSHIr.Web.Gravatar;
//...
IShowProgress gui = new peSHIr.CmdLine.ConsoleProgress();
var image = GravatarHelper.DownloadImage("email@example.com", 128, Default.MysteryPerson, Rating.G, gui);
Please be aware that downloaded images are cached to GravatarHelper.CacheFolder (which starts out as in a subfolder of TEMP, but can be set to something else if you want) for a number of hours to prevent rate limiting by doing too many requests to the Gravatar website.
Known issues
It seems that the Avatar docs mention two default options (both probably relatively new, and in beta) named initials and color that have currently not yet been implemented in this package.
Download
This library is available as a NuGet package on https://nuget.org. To install it, use the following command-line:
dotnet add package peSHIr.Gravatar
License and Versioning
This library is licensed under the MIT License - please see the LICENSE file for details - and makes use of Semantic Versioning to try and give meaning to the version numbers, at least for the non-prereleased stuff.
Credits
This library wouldn't have been possible without the following:
- Image documentation - Gravatar.com documentation about how to get image URIs
- xUnit - Community-focused unit testing tool for .NET by Brad Wilson
- FluentAssertions - Support library for using fluent unit test assertions by Dennis Doomen
- Polysharp - Generated, source-only polyfills for C# language features by Sergio Pedri
- peSHIr.Core - Hey, that sounds familiar...? It's by this guy 😉
Show your appreciation for my work
If you like what you see/use you could try one of these links to let me know:
You may also like
- My Link Tree
- My NuGet packages
- My English blog (long dead at the moment..)
- My Dutch blog (long dead at the moment..)
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0-windows7.0 is compatible. net9.0-windows was computed. net10.0-windows was computed. |
| .NET Framework | net472 is compatible. net48 was computed. net481 was computed. |
-
.NETFramework 4.7.2
- peSHIr.Core (>= 1.0.6)
-
net8.0-windows7.0
- peSHIr.Core (>= 1.0.6)
- System.Drawing.Common (>= 10.0.6)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.0.0 | 113 | 5/6/2026 |
This code has been relatively stable for years now, so many changes from this version 1.0.0 are not expected.