exif

package
v0.0.0-...-769d336 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2026 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Configure

func Configure(workers, batchSize int)

func Full

func Full(ctx context.Context, path string) (map[string]any, error)

Types

type Extractor

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

func New

func New() (*Extractor, error)

func (*Extractor) Close

func (e *Extractor) Close() error

func (*Extractor) Extract

func (e *Extractor) Extract(paths []string) map[string]model.ExifData

func (*Extractor) ExtractWithProgress

func (e *Extractor) ExtractWithProgress(paths []string, reporter progress.Reporter) map[string]model.ExifData

func (*Extractor) Write

func (e *Extractor) Write(path string, req WriteRequest) error

func (*Extractor) WriteAll

func (e *Extractor) WriteAll(changes []FileWrite) []WriteResult

func (*Extractor) WriteAllWithProgress

func (e *Extractor) WriteAllWithProgress(changes []FileWrite, reporter progress.Reporter) []WriteResult

type FileWrite

type FileWrite struct {
	Path string
	Req  WriteRequest
}

type WriteRequest

type WriteRequest struct {
	Time         *time.Time
	GPSTime      *time.Time
	GPSLatitude  *float64
	GPSLongitude *float64
}

type WriteResult

type WriteResult struct {
	Path string
	Err  error
}

Jump to

Keyboard shortcuts

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