Versions in this module Expand all Collapse all v1 v1.3.0 Nov 20, 2020 Changes in this version + func ExtensionToType(name string) bimg.ImageType + func ExtractImageTypeFromMime(mime string) string + func GetImageMimeType(code bimg.ImageType) string + func IsFormatSupported(format string) bool + func IsImageMimeTypeSupported(mime string) bool + type CropType struct + Height int + Width int + X int + Y int + type FilterType int + const FilterGreyscale + const FilterSepia + type FitType int + const FitContain + const FitCropBottom + const FitCropBottomLeft + const FitCropBottomRight + const FitCropCenter + const FitCropFocalPoint + const FitCropLeft + const FitCropRight + const FitCropTop + const FitCropTopLeft + const FitCropTopRight + const FitFill + const FitMax + const FitStretch + type Image struct + Body []byte + Mime string + type MockProcessor struct + func (_m *MockProcessor) ProcessImage(resource *Resource) error + type OptionParser struct + func NewOptionParser() *OptionParser + func (p OptionParser) Parse(r *http.Request) (*Options, error) + type Options struct + Background []uint8 + Blur int + Brightness int + Compression int + Contrast int + Crop CropType + DPR float64 + Filter FilterType + Fit FitType + Format bimg.ImageType + Gamma float64 + Height int + Orientation bimg.Angle + Quality int + Sharpen int + Width int + func (o *Options) Hash() string + func (o Options) ToBimg() bimg.Options + type Processor interface + ProcessImage func(resource *Resource) error + func NewProcessor() Processor + type Resource struct + Body []byte + MimeType string + ModifiedAt time.Time + Name string + Options *Options + Path string + Size int