Documentation ¶
Index ¶
- Variables
- type Backend
- type Gifsicle
- func (b *Gifsicle) Fit(*image.ImageFile, *Options) ([]byte, error)
- func (b *Gifsicle) Flat(*image.ImageFile, *Options) ([]byte, error)
- func (b *Gifsicle) Flip(*image.ImageFile, *Options) ([]byte, error)
- func (b *Gifsicle) Resize(imgfile *image.ImageFile, opts *Options) ([]byte, error)
- func (b *Gifsicle) Rotate(*image.ImageFile, *Options) ([]byte, error)
- func (b *Gifsicle) String() string
- func (b *Gifsicle) Thumbnail(imgfile *image.ImageFile, opts *Options) ([]byte, error)
- type GoImage
- func (e *GoImage) Fit(img *imagefile.ImageFile, options *Options) ([]byte, error)
- func (e *GoImage) Flat(backgroundFile *imagefile.ImageFile, options *Options) ([]byte, error)
- func (e *GoImage) Flip(img *imagefile.ImageFile, options *Options) ([]byte, error)
- func (e *GoImage) Resize(img *imagefile.ImageFile, options *Options) ([]byte, error)
- func (e *GoImage) Rotate(img *imagefile.ImageFile, options *Options) ([]byte, error)
- func (e *GoImage) String() string
- func (e *GoImage) Thumbnail(img *imagefile.ImageFile, options *Options) ([]byte, error)
- type Options
Constants ¶
This section is empty.
Variables ¶
View Source
var MethodNotImplementedError = errors.New("Not implemented")
MethodNotImplementedError is an error returned if method is not implemented
Functions ¶
This section is empty.
Types ¶
type Backend ¶
type Backend interface { Fit(img *image.ImageFile, options *Options) ([]byte, error) Flat(background *image.ImageFile, options *Options) ([]byte, error) Flip(img *image.ImageFile, options *Options) ([]byte, error) Resize(img *image.ImageFile, options *Options) ([]byte, error) Rotate(img *image.ImageFile, options *Options) ([]byte, error) String() string Thumbnail(img *image.ImageFile, options *Options) ([]byte, error) }
Engine is an interface to define an image engine
type Gifsicle ¶
type Gifsicle struct {
Path string
}
Gifsicle is the gifsicle backend.
Click to show internal directories.
Click to hide internal directories.