img

package
v0.15.0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotSupported = stdError.New("File not supported")

ErrNotSupported returned by Parse when given file is not in a supported format

Functions

func Resize

func Resize(file []byte, size int) ([]byte, error)

Resize image based on given size

Types

type File

type File struct {
	Width  int
	Height int
	Size   int
}

File is an image supported by Fider

func Parse

func Parse(file []byte) (*File, error)

Parse returns the a img.File if it's supported by fider

Jump to

Keyboard shortcuts

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