Documentation ¶
Index ¶
Constants ¶
View Source
const AvatarSize = 290
AvatarSize returns avatar's size
Variables ¶
This section is empty.
Functions ¶
func Prepare ¶ added in v1.9.0
Prepare accepts a byte slice as input, validates it contains an image of an acceptable format, and crops and resizes it appropriately.
func RandomImage ¶
RandomImage generates and returns a random avatar image unique to input data in default size (height and width).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.