Documentation ¶
Index ¶
- type Crop
- type Format
- func (f *Format) Background() string
- func (f *Format) FitType() config.FitType
- func (f *Format) Format() string
- func (f Format) FormatExtension() (string, error)
- func (f *Format) Height() int
- func (f Format) Highest() float64
- func (f Format) IsIgnoreCrop() bool
- func (f *Format) IsProportionalCrop() bool
- func (f *Format) IsReduceOnly() bool
- func (f *Format) IsStrip() bool
- func (f Format) Widest() float64
- func (f *Format) Width() int
- type Sampler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Crop ¶
type Format ¶
type Format struct {
// contains filtered or unexported fields
}
func NewFormat ¶
func NewFormat(cfg config.ImageStorageSamplerFormatConfig) *Format
func (*Format) Background ¶
func (Format) FormatExtension ¶
func (Format) IsIgnoreCrop ¶
func (*Format) IsProportionalCrop ¶
func (*Format) IsReduceOnly ¶
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)
Click to show internal directories.
Click to hide internal directories.