C# bindings for libravatar
License
chrisforbes/libravatar-sharp
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
master
Could not load branches
Nothing to show
Could not load tags
Nothing to show
{{ refName }}
default
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code
-
Clone
Use Git or checkout with SVN using the web URL.
Work fast with our official CLI. Learn more about the CLI.
- Open with GitHub Desktop
- Download ZIP
Sign In Required
Please sign in to use Codespaces.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching GitHub Desktop
If nothing happens, download GitHub Desktop and try again.
Launching Xcode
If nothing happens, download Xcode and try again.
Launching Visual Studio Code
Your codespace will open once ready.
There was a problem preparing your codespace, please try again.
Latest commit
Git stats
Files
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
SYNOPSIS using libravatarsharp; var uri = AvatarUri.FromEmail( "someone@example.com" ); var uri = AvatarUri.FromEmail( "someone@example.com", new AvatarOptions { ... var uri = AvatarUri.FromOpenID( "http://example.com/id/john" ); var uri = AvatarUri.FromOpenID( "http://example.com/id/john", new AvatarOptions { ... DESCRIPTION Libravatar-sharp is a very simple library for producing libravatar URIs from user information, in a C# application. OPTIONS AvatarOptions supports the following options: * PreferHTTPS: Produce https:// URIs where possible, which is useful if including URIs in a page served via HTTPS. The default value is false. * UseSHA256: Use the stronger SHA256 algorithm to hash the user's identity. This is harder to reverse, but breaks the fallback to Gravatar for missing images. When using OpenID identities, this flag is ignored, and SHA256 is used at all times. The default value is false. * DefaultImage: A URI to an image to use if none is found, or one of the values in AvatarDefaultImages. Not all servers support all of the magic values, however. The default value is null. * Size: The size of the image you want, in pixels. Valid values are between 1 and 512 pixels inclusive. The default value is 80 pixels. * BaseUri: Set the base URI for the server you want to use. By default, this is: http://cdn.libravatar.org/avatar/ If you don't like freedom, you could point this directly at Gravatar or something. * SecureBaseUri: Set the base URI for the server you want to use for HTTPS links. By default, this is: https://seccdn.libravatar.org/avatar/ BUGS The following would be nice, but are not yet supported: * Federation via DNS SRV requests AUTHOR Chris Forbes <chrisf@ijw.co.nz>
About
C# bindings for libravatar
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published