Below is the Jdenticon interface described. In most cases the HTML attributes are enough for using Jdenticon. Check them out before reading the rest of the API.
data-jdenticon-value | Specified on a <canvas> or <svg> element to declare that an identicon should be rendered for this value within the element. | |
data-jdenticon-hash | Specified on a <canvas> or <svg> element to declare that an identicon should be rendered for this hexadecimal hash string within the element. |
jdenticon() | Updates all <canvas> or <svg> elements with the data-jdenticon-value or data-jdenticon-hash attribute. | |
jdenticon.update() | Updates the identicon in a specific DOM element or for all elements matching a CSS selector. | |
jdenticon.updateCanvas() | Updates the identicon in a specific <canvas> element or for all elements matching a CSS selector. | |
jdenticon.updateSvg() | Updates the identicon in a specific <svg> element or for all elements matching a CSS selector. | |
jdenticon.drawIcon() | Renders an indenticon on a HTML canvas. | |
jdenticon.toPng() | Renders an identicon as a PNG image. Not available in the browser. | |
jdenticon.toSvg() | Renders an identicon as a SVG image. | |
jdenticon.configure() | Configures the appearance of generated icons and the behavior of Jdenticon. | |
$.fn.jdenticon() | jQuery wrapper plugin for updating all identicons in a query element collection. |
jdenticon_config | Configures the appearance of generated icons and the behavior of Jdenticon. |
Jdenticon comes with a command line interface that allows you to generate identicons with no programming required.
Command line usage Install scopes
A common problem is that no icons are rendered. Try one of the solutions in this article to solve the problem.