image

package
v0.0.0-...-696a884 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2014 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

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

func (*Image) Crop

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

func (*Image) Resize

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

func (*Image) Setup

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

type Request

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

Jump to

Keyboard shortcuts

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