exif

package
v0.126.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 13 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExcludeFields

func ExcludeFields(expression string) func(*Decoder) error

func IncludeFields

func IncludeFields(expression string) func(*Decoder) error

func WithDateDisabled

func WithDateDisabled(disabled bool) func(*Decoder) error

func WithLatLongDisabled

func WithLatLongDisabled(disabled bool) func(*Decoder) error

Types

type Decoder

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

func NewDecoder

func NewDecoder(options ...func(*Decoder) error) (*Decoder, error)

func (*Decoder) Decode

func (d *Decoder) Decode(r io.Reader) (ex *ExifInfo, err error)

type ExifInfo added in v0.98.0

type ExifInfo struct {
	// GPS latitude in degrees.
	Lat float64

	// GPS longitude in degrees.
	Long float64

	// Image creation date/time.
	Date time.Time

	// A collection of the available Exif tags for this Image.
	Tags Tags
}

ExifInfo holds the decoded Exif data for an Image.

type Tags

type Tags map[string]any

Tags is a map of EXIF tags.

func (Tags) MarshalJSON

func (v Tags) MarshalJSON() ([]byte, error)

MarshalJSON is for internal use only.

func (*Tags) UnmarshalJSON

func (v *Tags) UnmarshalJSON(b []byte) error

UnmarshalJSON is for internal use only.

Jump to

Keyboard shortcuts

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