Versions in this module Expand all Collapse all v7 v7.1.0 Mar 27, 2021 Changes in this version + var SaveDataEnabled bool = true v7.0.0 Mar 16, 2021 Changes in this version + var CacheTTL int + var Log glogi.Logger = glogi.NewSimpleLogger() + type Cmd func(input *TransformationConfig) (*Image, error) + type Command struct + Config *TransformationConfig + Err error + Finished bool + FinishedCond *sync.Cond + Resp http.ResponseWriter + Result *Image + Transformation Cmd + type Image struct + Data []byte + Id string + MimeType string + type Info struct + Format string + Height int + Opaque bool + Quality int + Size int64 + Width int + type Loader interface + Load func(src string, ctx context.Context) (*Image, error) + type OpCallback func() + type Processor interface + FitToSize func(input *TransformationConfig) (*Image, error) + Optimise func(input *TransformationConfig) (*Image, error) + Resize func(input *TransformationConfig) (*Image, error) + type Quality int + const DEFAULT + const LOW + type Queue struct + func NewQueue() *Queue + func (q *Queue) AddAndWait(op *Command, callback OpCallback) + type ResizeConfig struct + Size string + type Service struct + Loader Loader + Processor Processor + Q []*Queue + func NewService(r Loader, p Processor, procNum int) (*Service, error) + func (r *Service) AsIs(resp http.ResponseWriter, req *http.Request) + func (r *Service) FitToSizeUrl(resp http.ResponseWriter, req *http.Request) + func (r *Service) GetRouter() *mux.Router + func (r *Service) OptimiseUrl(resp http.ResponseWriter, req *http.Request) + func (r *Service) ResizeUrl(resp http.ResponseWriter, req *http.Request) + type TransformationConfig struct + Config interface{} + Quality Quality + Src *Image + SupportedFormats []string Other modules containing this package github.com/Pixboost/transformimgs github.com/Pixboost/transformimgs/v6 github.com/Pixboost/transformimgs/v8