processor

package
v0.0.0-...-8c14554 Latest Latest
Warning

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

Go to latest
Published: May 17, 2017 License: MIT Imports: 15 Imported by: 1

Documentation

Overview

Package processor では画像処理が実装されています。

このアプリケーションのメインの機能である画像のリサイズを処理します。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filename string) (image.Image, string, error)

Load decodes image from file at filename. It returns decoded image, the format of image, and any error occurred.

Types

type Processor

type Processor struct{}

func New

func New() *Processor

func (*Processor) Preprocess

func (self *Processor) Preprocess(filename string) (image.Image, error)

Preprocess load image and EXIF from file at filename. When orientation tag exists in EXIF, orient pixels in image.

func (*Processor) Process

func (p *Processor) Process(path string, w io.Writer, f storage.Image) (*image.Point, error)

func (*Processor) Resize

func (self *Processor) Resize(i image.Image, w io.Writer, f storage.Image) (*image.Point, error)

Process writes resized i to w with options in f. Returns the size of resized i and any error occurred.

type Result

type Result struct {
	Point *image.Point
	Error error
}

Jump to

Keyboard shortcuts

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