sleepy: github.com/deuill/sleepy/modules/image Index | Files

package image

import "github.com/deuill/sleepy/modules/image"

Package image contains methods for manipulating images, including resizing, cropping etc.

Index

Package Files

image.go

type Image Uses

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

func (*Image) Crop Uses

func (i *Image) Crop(p Request) (string, error)

func (*Image) Resize Uses

func (i *Image) Resize(p Request) (string, error)

func (*Image) Setup Uses

func (i *Image) Setup(config *config.Config) error

type Request Uses

type Request struct {
    Auth     string
    Remote   string
    Checksum string
    Filename string
    W        int64
    H        int64
    X        int64
    Y        int64
    Aspect   float64
}

Package image imports 15 packages (graph) and is imported by 1 packages. Updated 2016-07-16. Refresh now. Tools for package owners.