Versions in this module Expand all Collapse all v0 v0.1.0 Apr 14, 2024 v0.0.10 Apr 14, 2024 Changes in this version + var UpdateTestImages = updateTestImages + func Assert(t TestingT, img image.Image, filename string) + func Base64SplitLines(b []byte) []byte + func CloneAsRGBA(src image.Image) *image.RGBA + func CompareColors(cc, ic color.RGBA, tol int) bool + func CompareUint8(cc, ic uint8, tol int) bool + func FromBase64(fmt string, eb []byte) (image.Image, error) + func FromBase64JPG(eb []byte) (image.Image, error) + func FromBase64PNG(eb []byte) (image.Image, error) + func Save(im image.Image, filename string) error + func ToBase64JPG(img image.Image) ([]byte, string) + func ToBase64PNG(img image.Image) ([]byte, string) + func Write(im image.Image, w io.Writer, f Formats) error + type Formats int32 + const BMP + const FormatsN + const GIF + const JPEG + const None + const PNG + const TIFF + const WebP + func ExtToFormat(ext string) (Formats, error) + func FormatsValues() []Formats + func Open(filename string) (image.Image, Formats, error) + func OpenFS(fsys fs.FS, filename string) (image.Image, Formats, error) + func Read(r io.Reader) (image.Image, Formats, error) + func (i *Formats) SetInt64(in int64) + func (i *Formats) SetString(s string) error + func (i *Formats) UnmarshalText(text []byte) error + func (i Formats) Desc() string + func (i Formats) Int64() int64 + func (i Formats) MarshalText() ([]byte, error) + func (i Formats) String() string + func (i Formats) Values() []enums.Enum + type TestingT interface + Errorf func(format string, args ...any)