Versions in this module Expand all Collapse all v0 v0.629.4 Jul 24, 2026 Changes in this version + const DefaultLongSidePx + const HighTierLongSidePx + const MIMEGIF + const MIMEJPEG + const MIMEPNG + const MIMEWEBP + func Crop(data []byte, mime string, r Region, quality int) ([]byte, string, error) + func DetectMIME(data []byte) string + func ImageDimensions(data []byte) (w, h int, err error) + func ToDataURI(data []byte, mime string) string + type Meta struct + Base64Bytes int + Bytes int + Height int + MIMEType string + Resized bool + Width int + func Normalize(data []byte, mime string, opts Options) (out []byte, outMIME string, meta Meta, err error) + type Options struct + AutoResize bool + MaxBase64Bytes int + MaxHeight int + MaxLongSidePx int + MaxWidth int + Quality int + type Region struct + H int + W int + X int + Y int + type Tile struct + Col int + Data []byte + Index int + MIMEType string + Region Region + Row int + func TileImage(data []byte, mime string, tileSize, overlapPct, quality int) ([]Tile, error)