Edi.Gravatar 1.3.0

dotnet add package Edi.Gravatar --version 1.3.0
                    
NuGet\Install-Package Edi.Gravatar -Version 1.3.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="Edi.Gravatar" Version="1.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Edi.Gravatar" Version="1.3.0" />
                    
Directory.Packages.props
<PackageReference Include="Edi.Gravatar" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add Edi.Gravatar --version 1.3.0
                    
#r "nuget: Edi.Gravatar, 1.3.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package Edi.Gravatar@1.3.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=Edi.Gravatar&version=1.3.0
                    
Install as a Cake Addin
#tool nuget:?package=Edi.Gravatar&version=1.3.0
                    
Install as a Cake Tool

Edi.Gravatar

NuGet .NET

ASP.NET Core Gravatar Image TagHelper for easily displaying Gravatar profile images in your web applications.

Installation

Install the package via NuGet Package Manager:

dotnet add package Edi.Gravatar

Or via Package Manager Console:

Install-Package Edi.Gravatar

Setup

Add the TagHelper to your _ViewImports.cshtml:

@addTagHelper *, Edi.Gravatar

Usage

Basic Usage

<gravatar email="user@example.com" />

Advanced Usage

<gravatar email="user@example.com" size="120" alt="User Profile Picture" default-image-url="https://example.com/default-avatar.png" prefer-https="true" />

Properties

Property Type Default Description
email string null The email address to generate Gravatar for
size int 58 Image size in pixels (1-2048)
alt string "Gravatar image" Alt text for the image
default-image-url string "" URL of default image when Gravatar not found
prefer-https bool true Use HTTPS protocol for Gravatar URLs
force-default-image bool false Always show default image instead of Gravatar

Examples

Different Sizes

 <gravatar email="user@example.com" size="32" />
 <gravatar email="user@example.com" size="64" />
 <gravatar email="user@example.com" size="128" />

With Default Image

<gravatar email="user@example.com" size="80" default-image-url="https://via.placeholder.com/80" />

Requirements

  • .NET 8.0 or .NET 9.0
  • ASP.NET Core
Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 is compatible.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
  • net8.0

    • No dependencies.
  • net9.0

    • No dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories (1)

Showing the top 1 popular GitHub repositories that depend on Edi.Gravatar:

Repository Stars
EdiWang/Moonglade
Blog system of https://edi.wang, runs on Microsoft Azure
Version Downloads Last Updated
1.3.0 271 8/3/2025
1.2.0 969 11/13/2024
1.1.0 471 9/12/2024
1.0.0 182 9/12/2024