Documentation
¶
Overview ¶
Package image derives WebP variants, slot and inline renditions and zip downloads with libvips (CGO). A Processor runs one media.ProcessJob: it fills an item's missing or stale variants in one manifest edit and re-encodes its slots. Originals are read, never served.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Store media.Store
Kinds *media.Registry
Manifests *media.Manifests
Specs SpecChooser
Hooks media.Hooks // Failed
Workers int // sources encoded at once; default 2
MaxPixels int // largest source decoded, all frames of an animation together; default 100 MP
MaxFrames int // frames an animation may have; default 1000
// MaxAnimationSeconds bounds an animation's running time; default 60.
MaxAnimationSeconds float64
TempDir string // zip scratch; default os.TempDir()
}
Config configures a Processor.
type Processor ¶
type Processor struct {
// contains filtered or unexported fields
}
Processor derives images. It is safe for concurrent use and idempotent: a variant of an unchanged source and spec is never recomputed.
Click to show internal directories.
Click to hide internal directories.