Documentation ¶
Index ¶
- func AddImageRef(ctx context.Context, img *vips.ImageRef)
- func GetPageN(ctx context.Context) int
- func IsAnimated(ctx context.Context) bool
- func SetPageN(ctx context.Context, n int)
- 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 WithLogger(logger *zap.Logger) Option
- func WithMaxAnimationFrames(num int) 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
- func WithMozJPEG(enabled bool) Option
- type VipsProcessor
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddImageRef ¶ added in v0.7.1
AddImageRef context add vips image ref for keeping track of gc
func IsAnimated ¶ added in v0.8.0
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 WithLogger ¶
func WithMaxAnimationFrames ¶ added in v0.8.0
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
func WithMozJPEG ¶ added in v0.8.7
type VipsProcessor ¶
type VipsProcessor struct { Filters FilterMap DisableBlur bool DisableFilters []string MaxFilterOps int Logger *zap.Logger Concurrency int MaxCacheFiles int MaxCacheMem int MaxCacheSize int MaxWidth int MaxHeight int MaxAnimationFrames int MozJPEG bool Debug bool }
func New ¶
func New(options ...Option) *VipsProcessor
Click to show internal directories.
Click to hide internal directories.