operations

package
v0.0.0-...-8bd485b Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Operation

type Operation struct {
	// Reason is why the operation will be run
	Reason string
	// IFDPath is the path to the IFD to operate on in the dataset
	IFDPath string
	// Fields is the desired state of some EXIF fields
	Fields map[string]interface{}

	// ModTime if set will trigger the operation exec to update the mtime of the
	// file to the DateTimeOriginal of the image.
	ModTime bool
}

Operation describes a set of related changes to an image.

func CheckGPSData

func CheckGPSData(imageFile string, g *gpx.GPXDataset) ([]Operation, error)

func CheckLocalTime

func CheckLocalTime(imageFile string, g *gpx.GPXDataset) ([]Operation, error)

func CheckModTime

func CheckModTime(imageFile string) ([]Operation, error)

func (*Operation) Execute

func (o *Operation) Execute(image string) error

Jump to

Keyboard shortcuts

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