Versions in this module Expand all Collapse all v0 v0.4.1 Aug 14, 2026 Changes in this version + const ContentTypeImageBMP + const ContentTypeImageGIF + const ContentTypeImageJPEG + const ContentTypeImagePNG + const ContentTypeImageWEBP + const ContentTypeOctetStream + const ContentTypeTextHTML + const ContentTypeTextPlain + const ContentTypeZip + const DefaultQuality + const Height4K + const Width4K + var ErrCyclicalImport = errors.New("cyclical import of dependencies") + func AppendPathPrefixToExternalRecipientListEntries(prefix string, recipientEntry any) any + func DeterministicHashStringOf(data []byte) string + func EncodeJPEG(image image.Image, quality int) ([]byte, error) + func EncodePNG(image image.Image) ([]byte, error) + func IsPathLocal(p string) bool + func IsPathLocalBytes(p []byte) bool + func IsRecipientEntryExternal(p string) bool + func NewCyclicalImportPreventingFileSystem(fs fs.FS) fs.FS + func NewUnsafeUnconstrainedFileSystem() fs.FS + func Resize(image image.Image, width, height uint) image.Image + type Constraints struct + Height int + Quality int + Width int + func (m Constraints) ApplyTo(b []byte) (_ []byte, contentType string, err error) + func (m Constraints) Validate() (err error) + func (m Constraints) WithDefaults() Constraints + func (m Constraints) WithResolution(resolution int) Constraints