crop

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

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

Go to latest
Published: Feb 21, 2017 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package crop provides a imageserver/image.Processor implementation that allows to crop Image.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Processor

type Processor struct{}

Processor is a imageserver/image.Processor implementation that allows to crop Image.

All params are extracted from the "crop" node param and are mandatory:

  • min_x: top-left X
  • min_y: top-left Y
  • max_x: bottom-right X
  • max_y: bottom-right Y

func (*Processor) Change

func (prc *Processor) Change(params imageserver.Params) bool

Change implements imageserver/image.Processor.

func (*Processor) Process

func (prc *Processor) Process(im image.Image, params imageserver.Params) (image.Image, error)

Process implements imageserver/image.Processor.

Jump to

Keyboard shortcuts

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