Skip to content
master
Switch branches/tags
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 

README

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

Releases

No releases published

Packages

No packages published

Languages