sampler

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Crop

type Crop struct {
	Left   int
	Top    int
	Width  int
	Height int
}

func (Crop) IsEmpty

func (c Crop) IsEmpty() bool

type Format

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

func (*Format) Background

func (f *Format) Background() string

func (*Format) FitType

func (f *Format) FitType() config.FitType

func (*Format) Format

func (f *Format) Format() string

func (Format) FormatExtension

func (f Format) FormatExtension() (string, error)

func (*Format) Height

func (f *Format) Height() int

func (Format) Highest

func (f Format) Highest() float64

func (Format) IsIgnoreCrop

func (f Format) IsIgnoreCrop() bool

func (*Format) IsProportionalCrop

func (f *Format) IsProportionalCrop() bool

func (*Format) IsReduceOnly

func (f *Format) IsReduceOnly() bool

func (*Format) IsStrip

func (f *Format) IsStrip() bool

func (Format) Widest

func (f Format) Widest() float64

func (*Format) Width

func (f *Format) Width() int

type Sampler

type Sampler struct{}

func NewSampler

func NewSampler() *Sampler

func (Sampler) ConvertImage

func (s Sampler) ConvertImage(mw *imagick.MagickWand, crop Crop, format Format) (*imagick.MagickWand, error)

Jump to

Keyboard shortcuts

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