The highest tagged major version is
v2.
package
Version:
v1.0.4
Opens a new window with list of versions in this module.
Published: Mar 1, 2021
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
}
Avatar 头像参数
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.