Versions in this module Expand all Collapse all v0 v0.0.3 Jul 6, 2024 Changes in this version + func RegisterEXIFDecoder(d func(context.Context, []byte, bool, ...image.ReadOption) (*EXIF, error)) + func RegisterEXIFEncoder(e func(context.Context, *EXIF, bool, ...image.WriteOption) ([]byte, error)) + func RegisterICCDecoder(d func(context.Context, []byte, ...image.ReadOption) (*ICC, error)) + func RegisterICCEncoder(e func(context.Context, *ICC, ...image.WriteOption) ([]byte, error)) + func RegisterXMPDecoder(d func(context.Context, string, ...image.ReadOption) (*XMP, error)) + func RegisterXMPEncoder(e func(context.Context, *XMP, ...image.WriteOption) (string, error)) + type Core struct + Contributor []string + Coverage string + Creator []string + Date []time.Time + Description []LanguageAlternative + Format string + Identifier string + Language []string + Publisher []string + Relation []string + Rights []LanguageAlternative + Source string + Subject []string + Title []LanguageAlternative + Type []string + type EXIF struct + Artist string + BitsPerSample [3]uint16 + Compression uint16 + Copyright string + DateTime *time.Time + ImageDescription string + ImageHeight uint32 + ImageWidth uint32 + Make string + Model string + Orientation uint16 + PhotometricInterpretation uint16 + PlanarConfiguration uint16 + PrimaryChromaticities [6]Rational + ReferenceBlackWhite [6]Rational + ResolutionUnit uint16 + SamplesPerPixel uint16 + Software string + TransferFunction [3][256]uint16 + WhitePoint [2]Rational + XResolution Rational + YCbCrCoefficient [3]Rational + YCbCrPositioning uint16 + YCbCrSubsampling [2]uint16 + YResolution Rational + func DecodeEXIF(ctx context.Context, b []byte, isBigEndian bool, opt ...image.ReadOption) (*EXIF, error) + func (x *EXIF) Encode(ctx context.Context, isBigEndian bool, opt ...image.WriteOption) ([]byte, error) + type GUID string + type ICC struct + CMMFlags uint32 + CMMTypeSignature uint32 + ColorSpace uint32 + DeviceAttributes uint32 + DeviceManufacturer uint32 + DeviceModel uint32 + PrimaryPlatformSignature uint32 + ProfileClassSignature uint32 + ProfileConnectionSpace uint32 + ProfileConnectionSpaceIlluminant XYZNumber + ProfileCreationTime time.Time + ProfileCreatorSignature uint32 + ProfileVersion ProfileVersion + RenderingIntent uint32 + func DecodeICC(ctx context.Context, b []byte, opt ...image.ReadOption) (*ICC, error) + func (x *ICC) Encode(ctx context.Context, opt ...image.WriteOption) ([]byte, error) + type LanguageAlternative struct + Language string + Text string + type ProfileVersion struct + Major uint8 + Minor uint8 + type Rational struct + Denomenator uint32 + Numerator uint32 + type RenditionClass string + type ResourceRef string + type Response16 struct + Interval uint16 + Measurement S15Fixed16 + type S15Fixed16 struct + Fraction uint16 + Integer int16 + type U16Fixed16 struct + Fraction uint16 + Integer uint16 + type U8Fixed8 struct + Fraction uint8 + Integer uint8 + type XMP struct + CoreProperties *Core + IDQ *XMPIDQ + MediaManagement *XMPMediaManagement + Properties *XMPSpecific + Rights *XMPRights + func DecodeXMP(ctx context.Context, b string, opt ...image.ReadOption) (*XMP, error) + func (x *XMP) Encode(ctx context.Context, opt ...image.WriteOption) (string, error) + type XMPIDQ struct + Scheme string + type XMPMediaManagement struct + DerivedFrom ResourceRef + DocumentID GUID + InstanceID GUID + OriginalDocumentID GUID + RenditionClass RenditionClass + RenditionParams string + type XMPRights struct + Certificate string + Marked *bool + Owner []string + UsageTerms []LanguageAlternative + WebStatement string + type XMPSpecific struct + CreateDate *time.Time + CreatorTool string + Identifier []string + Label string + MetadataData *time.Time + ModifiedDate *time.Time + Rating float64 + type XYZNumber struct + X S15Fixed16 + Y S15Fixed16 + Z S15Fixed16