Documentation ¶
Index ¶
- func AddImageRef(ctx context.Context, img *vips.ImageRef)
- type FilterFunc
- type FilterMap
- type Option
- func WithConcurrency(num int) Option
- func WithDebug(debug bool) Option
- func WithDisableBlur(disabled bool) Option
- func WithDisableFilters(filters ...string) Option
- func WithFilter(name string, filter FilterFunc) Option
- func WithLoadFromFile(enabled bool) Option
- func WithLogger(logger *zap.Logger) Option
- func WithMaxCacheFiles(num int) Option
- func WithMaxCacheMem(num int) Option
- func WithMaxCacheSize(num int) Option
- func WithMaxFilterOps(num int) Option
- func WithMaxHeight(height int) Option
- func WithMaxWidth(width int) Option
- type VipsProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FilterFunc ¶
type FilterMap ¶
type FilterMap map[string]FilterFunc
type Option ¶
type Option func(v *VipsProcessor)
func WithConcurrency ¶ added in v0.2.11
func WithDisableBlur ¶
func WithDisableFilters ¶
func WithFilter ¶
func WithFilter(name string, filter FilterFunc) Option
func WithLoadFromFile ¶ added in v0.5.3
func WithLogger ¶
func WithMaxCacheFiles ¶ added in v0.2.9
func WithMaxCacheMem ¶ added in v0.2.9
func WithMaxCacheSize ¶ added in v0.2.9
func WithMaxFilterOps ¶
func WithMaxHeight ¶ added in v0.5.0
func WithMaxWidth ¶ added in v0.5.0
type VipsProcessor ¶
type VipsProcessor struct { Filters FilterMap LoadFromFile bool DisableBlur bool DisableFilters []string MaxFilterOps int Logger *zap.Logger Concurrency int MaxCacheFiles int MaxCacheMem int MaxCacheSize int MaxWidth int MaxHeight int Debug bool }
func New ¶
func New(options ...Option) *VipsProcessor
Click to show internal directories.
Click to hide internal directories.