imgr

package
v0.0.0-...-7d79363 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2015 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	THUMNAIL_SIZE = 200
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Image

type Image struct {
	Name       string
	Dimensions []int
	Path       string
	Ext        string
}

type ImageManager

type ImageManager struct {
	Source      string
	Destinalion string
	Images      []*Image
	AllowedExt  []string
}

func NewImageManager

func NewImageManager(src string, dest string, allow []string) *ImageManager

func (*ImageManager) AddImage

func (i *ImageManager) AddImage(path string) error

func (*ImageManager) LoadFromSource

func (i *ImageManager) LoadFromSource() error

type Thumbnails

type Thumbnails struct {
	ImageManager
}

func (*Thumbnails) CreateThumbnail

func (l *Thumbnails) CreateThumbnail(src, dest string, width int, height int) error

func (*Thumbnails) Process

func (t *Thumbnails) Process(width, height int) error

Jump to

Keyboard shortcuts

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