Versions in this module Expand all Collapse all v0 v0.1.1 Nov 23, 2026 v0.1.0 Nov 14, 2026 Changes in this version + const MaxDimension + const MaxInputBytes + const MaxSourcePixels + func DataURI(ctx context.Context, source image.Image) (string, error) + func Decode(ctx context.Context, data []byte, width, height int, options ...Limits) (image.Image, error) + func Fit(width, height, maxWidth, maxHeight int, options ...Limits) (int, int, error) + func FitDecode(ctx context.Context, data []byte, maxWidth, maxHeight int, options ...Limits) (image.Image, error) + func PNG(ctx context.Context, source image.Image) ([]byte, error) + type Limits struct + MaxInputBytes int + MaxSourcePixels int64 + func DefaultLimits() Limits + type Rendered struct + DataURI string + Height int + Width int + func Render(ctx context.Context, data []byte, maxWidth, maxHeight int, options ...Limits) (Rendered, error)