Versions in this module Expand all Collapse all v1 v1.0.0 Feb 19, 2026 Changes in this version + const JPEG + const PNG + const WebP + func AdaptiveCompress(reg core.Registry, targetBytes int64, minQ, maxQ int) core.Step + func ConvertFormat(f core.Format) core.Step + func Crop(x, y, width, height int) core.Step + func Decode() core.Step + func DecodeWith(reg core.Registry) core.Step + func DefaultConfig() config.Config + func Encode() core.Step + func EncodeWith(reg core.Registry, opts core.EncodeOptions) core.Step + func FromReader(r io.Reader) core.Source + func FromReaderWithMeta(r io.Reader, size int64, contentType, name string) core.Source + func Grayscale() core.Step + func Quality(q int) core.Step + func Resize(width, height int) core.Step + func StripEXIF() core.Step + func Thumbnail(size int) core.Step + type Processor struct + func New(cfg config.Config) *Processor + func (p *Processor) AddHook(h core.Hook) + func (p *Processor) Batch(ctx context.Context, sources []core.Source, steps ...core.Step) ([]*core.ProcessingResult, []error) + func (p *Processor) Inner() *core.Processor + func (p *Processor) NewPipeline(steps ...core.Step) *pipeline.Pipeline + func (p *Processor) Process(ctx context.Context, src core.Source, steps ...core.Step) (*core.ProcessingResult, error) + func (p *Processor) ProcessVariants(ctx context.Context, src core.Source, baseSteps []core.Step, ...) (*core.ProcessingResult, error) + func (p *Processor) RegisterDecoder(f core.Format, d core.Decoder) + func (p *Processor) RegisterEncoder(f core.Format, e core.Encoder) + func (p *Processor) SetLogger(l core.Logger) + func (p *Processor) SetMetrics(m core.MetricsCollector) + func (p *Processor) Start() + func (p *Processor) Stats() (processed, errors int64) + func (p *Processor) Stop() + func (p *Processor) Submit(job core.Job) error