vision

package
v0.0.0-...-bc30745 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSize = 4096
	MinSize = 15
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Reader io.Reader
	Url    string
	Size   *Size
}

func FromBytes

func FromBytes(bts []byte) (*Image, error)

func FromFile

func FromFile(file string) (*Image, error)

func FromReader

func FromReader(reader io.Reader) (*Image, error)

func FromUrl

func FromUrl(link string) (*Image, error)

func MustFromBytes

func MustFromBytes(bts []byte) *Image

func MustFromFile

func MustFromFile(file string) *Image

func MustFromReader

func MustFromReader(reader io.Reader) *Image

func MustFromUrl

func MustFromUrl(link string) *Image

func (*Image) Base64Encode

func (img *Image) Base64Encode() (string, error)

type Size

type Size struct {
	Height int
	Width  int
}

Directories

Path Synopsis
face
v2
v3

Jump to

Keyboard shortcuts

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