imagick

package
v0.14.1-0...-4724070 Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2016 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrEngineReleased = errors.New("imagick: engine has been released.")
	ErrEngineFailure  = errors.New("imagick: unable to request a MagickWand")
)

Functions

This section is empty.

Types

type Engine

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

func (Engine) GetImageInfo

func (ng Engine) GetImageInfo(b []byte, srcFormat ...string) (*imgry.ImageInfo, error)

func (Engine) Initialize

func (ng Engine) Initialize(tmpDir string) error

func (Engine) LoadBlob

func (ng Engine) LoadBlob(b []byte, srcFormat ...string) (imgry.Image, error)

func (Engine) LoadFile

func (ng Engine) LoadFile(filename string, srcFormat ...string) (imgry.Image, error)

func (Engine) SweepTmpDir

func (ng Engine) SweepTmpDir() error

func (Engine) Terminate

func (ng Engine) Terminate()

func (Engine) Version

func (ng Engine) Version() string

type Image

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

func (*Image) Clone

func (i *Image) Clone() imgry.Image

func (*Image) Data

func (i *Image) Data() []byte

func (*Image) Format

func (i *Image) Format() string

func (*Image) Height

func (i *Image) Height() int

func (*Image) Release

func (i *Image) Release()

func (*Image) Released

func (i *Image) Released() bool

func (*Image) SetFormat

func (i *Image) SetFormat(format string) error

func (*Image) SizeIt

func (i *Image) SizeIt(sz *imgry.Sizing) error

func (*Image) Width

func (i *Image) Width() int

func (*Image) WriteToFile

func (i *Image) WriteToFile(fn string) error

Jump to

Keyboard shortcuts

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