Documentation
¶
Index ¶
- type EXIF
- type IFD
- type MakerNote
- type Tag
- func (t *Tag) Any() any
- func (t *Tag) Bytes() []byte
- func (t *Tag) Components() uint
- func (t *Tag) Format() libexif.Format
- func (t *Tag) IFD() IFD
- func (t *Tag) Image() image.Image
- func (t *Tag) Key() string
- func (t *Tag) MarshalJSON() ([]byte, error)
- func (t *Tag) Name() string
- func (t *Tag) String() string
- func (t *Tag) Tag() TagType
- func (t *Tag) Value() string
- type TagType
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EXIF ¶
type EXIF struct {
// contains filtered or unexported fields
}
func (*EXIF) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
type MakerNote ¶
type MakerNote struct {
// contains filtered or unexported fields
}
func (*MakerNote) MarshalJSON ¶
MarshalJSON implements json.Marshaler.
type Tag ¶
type Tag struct {
// contains filtered or unexported fields
}
func (*Tag) Any ¶
Any returns the tag's data decoded into an appropriate Go type (implements media.Metadata). For single-component tags: uint8, int8, uint16, int16, uint32, int32, libexif.Rational, libexif.SRational, float32, float64, or string (ASCII). For multi-component tags the corresponding slice type is returned. UNDEFINED format is returned as []byte.
func (*Tag) Components ¶
Components returns the number of values in the tag's data array.
func (*Tag) Key ¶
Key returns "tiff:Name" for IFD0/IFD1 tags and "exif:Name" for EXIF/GPS/Interop tags (implements media.Metadata). The prefix aligns with XMP namespace conventions so cross-source lookups work uniformly across pkg/exif and pkg/xmp.
func (*Tag) MarshalJSON ¶
MarshalJSON implements json.Marshaler.