processor

package
v0.0.0-...-d5a36d1 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2021 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImaginaryProcessor

type ImaginaryProcessor struct {
	Url string
	// contains filtered or unexported fields
}

func NewImaginary

func NewImaginary(conf config.Config) (*ImaginaryProcessor, error)

func (*ImaginaryProcessor) Optimize

func (ip *ImaginaryProcessor) Optimize(media []byte, originalFormat string, targetFormat string, quality, width int) ([]byte, string, error)

type LocalProcessor

type LocalProcessor struct {
}

func (*LocalProcessor) Optimize

func (lp *LocalProcessor) Optimize(media []byte, originalFormat string, targetFormat string, quality, width int) ([]byte, string, error)

type NoneProcessor

type NoneProcessor struct {
}

func (*NoneProcessor) Optimize

func (lp *NoneProcessor) Optimize(media []byte, originalFormat string, targetFormat string, quality, width int) ([]byte, string, error)

type Processor

type Processor interface {
	Optimize(media []byte, originalFormat string, targetFormat string, quality, width int) ([]byte, string, error)
}

func New

func New(conf config.Config) (Processor, error)

Jump to

Keyboard shortcuts

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