avatar

package
v0.0.0-...-0bd2313 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 23, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AvatarSize = 290

Variables

This section is empty.

Functions

func GenerateRandom

func GenerateRandom(u *user.User) (image.Image, error)

func GenerateRandomSize

func GenerateRandomSize(size int, data []byte) (image.Image, error)

func IsImage

func IsImage(data []byte) bool

func PrepareAvatar

func PrepareAvatar(data []byte, maxWidth, maxHeight, size int) (image.Image, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL