Documentation
¶
Overview ¶
Package image derives WebP variants, public slots 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 public 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; default 100 MP
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.