Versions in this module Expand all Collapse all v0 v0.0.1 Nov 15, 2024 Changes in this version + const SpaceAbsoluteColorimetric + const SpacePerceptual + const SpaceRelativeColorimetric + const SpaceSaturation + const UnitMeter + const UnitUnknown + func Decode(r io.Reader) (image.Image, error) + func DecodeConfig(r io.Reader) (image.Config, error) + func DecodeExtended(ctx context.Context, r io.Reader, opts ...image.ReadOption) (image.Image, image.Metadata, error) + func Encode(w io.Writer, m image.Image) error + func EncodeExtended(ctx context.Context, w io.Writer, m image.Image, opts ...image.WriteOption) error + type Background struct + Blue int + Green int + Grey int + PaletteIndex int + Red int + func (b Background) String() string + type Chroma struct + BlueX uint32 + BlueY uint32 + GreenX uint32 + GreenY uint32 + RedX uint32 + RedY uint32 + WhiteX uint32 + WhiteY uint32 + type CompressionLevel int + const BestCompression + const BestSpeed + const DefaultCompression + const NoCompression + type Deferred struct + func (d *Deferred) At(x, y int) color.Color + func (d *Deferred) Bounds() image.Rectangle + func (d *Deferred) ColorModel() color.Model + func (i *Deferred) Instantiate(ctx context.Context, opts ...image.ReadOption) (image.Image, error) + type Dimension struct + Unit int + X int + Y int + func (d Dimension) String() string + type Encoder struct + BufferPool EncoderBufferPool + CompressionLevel CompressionLevel + func (enc *Encoder) Encode(w io.Writer, m image.Image) error + func (enc *Encoder) EncodeExtended(ctx context.Context, w io.Writer, m image.Image, opts ...image.WriteOption) error + type EncoderBuffer encoder + type EncoderBufferPool interface + Get func() *EncoderBuffer + Put func(*EncoderBuffer) + type FormatError string + func (e FormatError) Error() string + type Metadata struct + Background *Background + Chroma *Chroma + ColorModel color.Model + Dimension *Dimension + Gamma *uint32 + Height int + Histogram []uint16 + LastModified *time.Time + SRGBIntent *SRGBIntent + SignificantBits *SignificantBits + Text []*TextEntry + Width int + func (m *Metadata) EXIF(ctx context.Context, opt ...image.ReadOption) (*metadata.EXIF, error) + func (m *Metadata) GetConfig() image.Config + func (m *Metadata) ICC(ctx context.Context, opt ...image.ReadOption) (*metadata.ICC, error) + func (m *Metadata) ImageMetadataFormat() string + func (m *Metadata) IsImageWriteOption() + func (m *Metadata) SetEXIF(e *metadata.EXIF) + func (m *Metadata) SetIcc(i *metadata.ICC) + func (m *Metadata) SetXMP(x *metadata.XMP) + func (m *Metadata) XMP(ctx context.Context, opt ...image.ReadOption) (*metadata.XMP, error) + type SRGBIntent uint8 + const SIAbsoluteColorimetric + const SIPerceptual + const SIRelativeColorimetric + const SISaturation + func (s SRGBIntent) String() string + type SignificantBits struct + Alpha int + Blue int + Gray int + Green int + Red int + type TextEntry struct + EntryType TextType + Key string + LanguageTag string + TranslatedKey string + Value string + func (e *TextEntry) String() string + type TextType int + const EtItext + const EtText + const EtZtext + func (t TextType) String() string + type UnsupportedError string + func (e UnsupportedError) Error() string