Versions in this module Expand all Collapse all v0 v0.1.1 Nov 26, 2026 v0.1.0 Oct 16, 2026 Changes in this version + func FitSize(w, h, maxSide int) (int, int) + func Supports(mime string) bool + type Format string + const JPEG + const PNG + type Mode int + const Fit + const Square + type Options struct + Format Format + JPEGQuality int + MaxBytes int64 + MaxPixels int64 + Mode Mode + Size int + type Result struct + Bytes []byte + ContentType string + Height int + MetadataError error + Width int + func Prepare(r io.Reader, o Options) (Result, error)