package
Version:
v2.0.3
Opens a new window with list of versions in this module.
Published: Aug 24, 2020
License: MIT
Opens a new window with license information.
Imports: 11
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Avatar struct {
Width uint
Height uint
MaxWidth int
MaxHeight int
}
Prepare accepts a byte slice as input, validates it contains an image of an
acceptable format, and crops and resizes it appropriately.
RandomImage generates and returns a random avatar image unique to input data
in default size (Min(height,width) height and width).
Source Files
¶
Click to show internal directories.
Click to hide internal directories.