imageprocessor

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2016 License: MIT Imports: 17 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(b []byte) (d image.Image, err error)

func EncodeJpeg

func EncodeJpeg(img *image.Image) ([]byte, error)

func Set404Image

func Set404Image(path string, w uint, h uint, c color.Color, maxW uint, maxH uint) ([]byte, error)

Types

type Image

type Image struct {
	// contains filtered or unexported fields
}

func DecodeImage

func DecodeImage(bin []byte) (*Image, error)

DecodeImage is return image.Image

func (*Image) GetImg

func (i *Image) GetImg() *image.Image

func (*Image) ResizeAndFill

func (i *Image) ResizeAndFill(w uint, h uint, c color.Color, maxW uint, maxH uint)

Jump to

Keyboard shortcuts

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