GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing jdenticon.com — Jdenticon - Open source identicon generator JdenticonOpen source library for generating identicons Icon value: Size: JdenticonOpen source library for generating identicons identicon An Identicon is a visual representation of a hash value, usually of an IP address, that serves to identify a user of a computer system as a form of avatar while protecting the users' privacy. Wikipedia Quick startIn the browserInclude the Jdenticon library somewhere on your page. Jdenticon is served from jsDelivr in this example. <script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/jdenticon.min.js" async integrity="sha384-LfouGM03m83ArVtne1JPk926e3SGD0Tz8XHtW2OKGsgeBU/UfR0Fa8eX+UlwSSAZ" crossorigin="anonymous"> </script> Add an empty inline <svg data-jdenticon-value="user127" width="80" height="80"> Fallback text or image for browsers not supporting inline svg. </svg> Refresh the page and voila! See get started or the documentation for more examples. Node.jsCreate an empty directory and install the Jdenticon NPM package. npm install jdenticon Save the following code as const jdenticon = require("jdenticon"); const fs = require("fs"); const value = "icon value"; const size = 200; const png = jdenticon.toPng(value, size); fs.writeFileSync("./testicon.png", png); Run the test file and open node ./test.js See get started or the documentation for more examples. PHPInstall the Jdenticon Composer package. composer require jdenticon/jdenticon Use the Identicon class to create identicons. <?php include_once("vendor/autoload.php"); $icon = new \Jdenticon\Identicon(); $icon->setValue('Value to be hashed'); $icon->setSize(100); $icon->displayImage(); See get started or the documentation for more examples. ASP.NET CoreInstall the Jdenticon.AspNetCore NuGet package. PM> Install-Package Jdenticon.AspNetCore Call using Jdenticon.AspNetCore; /* ... */ public class Startup { /* ... */ public void Configure(IApplicationBuilder app, IHostingEnvironment env) { /* ... */ app.UseJdenticon(); app.UseStaticFiles(); app.UseMvc(); /* ... */ } } Add the following lines to your @using Jdenticon.AspNetCore
@addTagHelper "*, Jdenticon.AspNetCore"Render icons on a page by using any of the following examples: @{ var myIconValue = "jdenticon"; } Icon: <img identicon-value="myIconValue" width="100" height="100" alt="Identicon" /> Icon: @Html.Identicon(myIconValue, size: 100, alt: "Icon") Icon: <img src="@Url.Identicon(myIconValue, size: 100)" alt="Icon" width="100" height="100" /> See get started or the documentation for more examples. ASP.NET MVCInstall the Jdenticon.AspNet.Mvc NuGet package. PM> Install-Package Jdenticon.AspNet.Mvc Now you can render icons on any page by using the following code: @using Jdenticon.AspNet.Mvc; <div> Icon: @Html.Identicon("Value to be hashed", size: 100, alt: "Icon") Icon: <img src="@Url.Identicon("Value to be hashed", size: 100)" alt="Icon" width="100" height="100" /> </div> See get started or the documentation for more examples. .NET general usageInstall the Jdenticon-net NuGet package. PM> Install-Package Jdenticon-net Use the Identicon class to create identicons. using Jdenticon; class Program { static void Main() { Identicon .FromValue("string to hash", size: 160) .SaveAsPng("test.png"); } } See get started or the documentation for more examples. Supported platforms
LicenseJdenticon is released under the terms of the MIT license. Copyright (c) 2014-2025 Daniel Mester Pirttijärvi Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||||||||||||||||||||||||||||||||||||||||
| You are visitor 01402792 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |