tagreader

package
v0.0.0-...-52dee4c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStandardExifDateTags

func GetStandardExifDateTags() []string

GetStandardExifDateTags returns an array containing the name of standard exif tag representing date

func IsDateExifTag

func IsDateExifTag(tagName string) bool

IsDateExifTag returns true if the tagName passed in parameter is a date tag

func ParseExifDate

func ParseExifDate(s string) (time.Time, error)

ParseExifDate returns a time.Time from the value of an Exif tag representing a date

Types

type ExifTagReader

type ExifTagReader struct {
	// contains filtered or unexported fields
}

ExifTagReader abstracts a type for reading Exif metadata

func CreateExifTagReader

func CreateExifTagReader(data []byte) *ExifTagReader

CreateExifTagReader creates an ExifagReader instance used to read the Exif metadata passed in parameter

func (*ExifTagReader) GetAllTags

func (exifTagReader *ExifTagReader) GetAllTags() map[string]Tag

GetAllTags gets all the tags as a map associating tag name to tag value (as string)

func (*ExifTagReader) GetTagByID

func (exifTagReader *ExifTagReader) GetTagByID(tagID uint16) string

GetTagByID does a lookup for an Exif tag based on the tag id

func (*ExifTagReader) GetTagByName

func (exifTagReader *ExifTagReader) GetTagByName(tagName string) string

GetTagByName does a lookup for an Exif tag based on the tag name

type Tag

type Tag struct {
	Name  string
	Value string
	Path  string
}

Tag abstracts the tags returned by GetAllTags

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL