processorcommand

package
v0.0.0-...-fedf337 Latest Latest
Warning

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

Go to latest
Published: May 31, 2017 License: MIT Imports: 12 Imported by: 8

Documentation

Index

Constants

View Source
const GM_COMMAND = "gm"

Variables

This section is empty.

Functions

func CircleThumb

func CircleThumb(filename, name string, width int, quality int, format thumbType.ThumbType) (string, error)

func ConvertToJpeg

func ConvertToJpeg(filename string) (string, error)

func CustomThumb

func CustomThumb(filename, name string, width, height int, cropGravity string, cropWidth, cropHeight, quality int, format thumbType.ThumbType) (string, error)

func FixOrientation

func FixOrientation(filename string) (string, error)

func Full

func Full(filename string, name string, quality int, format thumbType.ThumbType) (string, error)

func Jpegtran

func Jpegtran(filename string) (string, error)

func Optipng

func Optipng(filename string) (string, error)

func Quality

func Quality(filename string, quality int) (string, error)

func ResizePercent

func ResizePercent(filename string, percent int) (string, error)

func SquareThumb

func SquareThumb(filename, name string, size int, quality int, format thumbType.ThumbType) (string, error)

func StripMetadata

func StripMetadata(filename string) error

func Thumb

func Thumb(filename, name string, width, height int, quality int, format thumbType.ThumbType) (string, error)

Types

type MemeOCR

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

func NewMemeOCR

func NewMemeOCR() *MemeOCR

func (*MemeOCR) Run

func (this *MemeOCR) Run(image string) (*OCRResult, error)

type MultiOCRCommand

type MultiOCRCommand []OCRCommand

func (MultiOCRCommand) Run

func (this MultiOCRCommand) Run(image string) (*OCRResult, error)

type OCRCommand

type OCRCommand interface {
	Run(image string) (*OCRResult, error)
}

type OCRResult

type OCRResult struct {
	Type string
	Text string
}

type StandardOCR

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

func NewStandardOCR

func NewStandardOCR() *StandardOCR

func (*StandardOCR) Run

func (this *StandardOCR) Run(image string) (*OCRResult, error)

Jump to

Keyboard shortcuts

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