magick

package
v0.0.0-...-9fc8a72 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2015 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CropBuilder

func CropBuilder(parts []string) (filter.Filter, int, error)

func FlipBuilder

func FlipBuilder(parts []string) (filter.Filter, int, error)

func GrayscaleBuilder

func GrayscaleBuilder(parts []string) (filter.Filter, int, error)

func ResizeBuilder

func ResizeBuilder(parts []string) (filter.Filter, int, error)

Types

type Crop

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

func (*Crop) Apply

func (c *Crop) Apply(i img.Img) (img.Img, error)

type Flip

type Flip struct{}

func (*Flip) Apply

func (f *Flip) Apply(i img.Img) (img.Img, error)

type Flop

type Flop struct{}

func (*Flop) Apply

func (f *Flop) Apply(i img.Img) (img.Img, error)

type Grayscale

type Grayscale struct{}

func (*Grayscale) Apply

func (g *Grayscale) Apply(i img.Img) (img.Img, error)

type JPEGWriter

type JPEGWriter struct{}

func (*JPEGWriter) Write

func (j *JPEGWriter) Write(i img.Img, quality int, w io.Writer) error

type PNGWriter

type PNGWriter struct{}

func (*PNGWriter) Write

func (p *PNGWriter) Write(i img.Img, quality int, w io.Writer) error

type Provider

type Provider struct{}

func (*Provider) Decode

func (p *Provider) Decode(r io.Reader) (img.Img, error)

func (*Provider) FilterMap

func (p *Provider) FilterMap() map[string]filter.FilterBuilder

func (*Provider) WriterMap

func (p *Provider) WriterMap() map[string]provider.Writer

type Resize

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

func (*Resize) Apply

func (r *Resize) Apply(i img.Img) (img.Img, error)

Jump to

Keyboard shortcuts

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