Versions in this module Expand all Collapse all v0 v0.1.0 Jul 28, 2026 Changes in this version + var ClaraHD = Profile + var Elipsa = Profile + var Libra2 = Profile + var Sage = Profile + func EncodeJPEG(w io.Writer, img image.Image, quality int) error + func EncodePNG(w io.Writer, img image.Image) error + type Option func(*config) + func WithDither() Option + func WithGamma(g float64) Option + func WithQuantize() Option + func WithSpreadPolicy(sp SpreadPolicy) Option + func WithTrimTolerance(levels uint8) Option + func WithoutAutoContrast() Option + func WithoutResize() Option + func WithoutTrim() Option + func WithoutUpscale() Option + type Page struct + Image *image.Gray + Kind PageKind + func Process(src image.Image, p Profile, opts ...Option) ([]Page, error) + type PageKind int + const KindSingle + const KindSpread + const KindSpreadFirst + const KindSpreadSecond + type Profile struct + Gamma float64 + Height int + Levels int + Name string + Width int + type SpreadPolicy int + const Preserve + const SplitLTR + const SplitRTL