RoboHash.Local
1.0.4
dotnet add package RoboHash.Local --version 1.0.4
NuGet\Install-Package RoboHash.Local -Version 1.0.4
<PackageReference Include="RoboHash.Local" Version="1.0.4" />
<PackageVersion Include="RoboHash.Local" Version="1.0.4" />
<PackageReference Include="RoboHash.Local" />
paket add RoboHash.Local --version 1.0.4
#r "nuget: RoboHash.Local, 1.0.4"
#:package RoboHash.Local@1.0.4
#addin nuget:?package=RoboHash.Local&version=1.0.4
#tool nuget:?package=RoboHash.Local&version=1.0.4
RoboHash.Local
RoboHash.Local is a local-only, .NET (WPF) adaptation of the RoboHash library by e1ven. This project allows you to generate unique avatars based on input strings without requiring any network access.
- Upstream project: RoboHash by e1ven
This package embeds the RoboHash set1 image assets directly into the assembly and deterministically composites them to produce a PNG avatar from any input string.
Install
You can install RoboHash.Local via NuGet using either of the following methods:
From NuGet (Package Manager):
Install-Package RoboHash.Local
Or via the .NET CLI:
dotnet add package RoboHash.Local
Usage
To generate a PNG avatar as a byte[] and write it to disk, you can use the following code snippet:
using System;
using System.IO;
using RoboHash.Local;
var generator = new RoboHashSet1Generator();
byte[] png = generator.GeneratePng("alice@example.com", width: 300, height: 300);
File.WriteAllBytes("avatar.png", png);
Notes
- Target framework:
net8.0-windows(uses WPF imaging types). - Assets: All assets are embedded; no network access is required.
- Deterministic output: The output is deterministic for the same input, ensuring consistent avatar generation.
License / Attribution
RoboHash assets and the original idea come from the upstream project by e1ven. For more information, visit the RoboHash GitHub repository.
| 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. |
-
net8.0-windows7.0
- No dependencies.
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.4 | 107 | 2/5/2026 |
Local-only dotnet adaptation of RoboHash. Only set1 assets included.