exif

package
v0.0.0-...-f7f7f86 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var MakeMap = map[string]string{
	"NIKON CORPORATION":           "Nikon",
	"NIKON":                       "Nikon",
	"FUJIFILM":                    "Fujifilm",
	"Sony Ericsson":               "Sony",
	"OLYMPUS IMAGING CORP.":       "Olympus",
	"SIGMA":                       "Sigma",
	"LEICA":                       "Leica",
	"RICOH IMAGING COMPANY, LTD.": "Ricoh",
	"KODAK":                       "Kodak",
	"LG Electronics":              "LG",
}
View Source
var ModelMap = map[string]string{
	"FinePix X100": "X100",
}

Functions

This section is empty.

Types

type Data

type Data struct {
	// Make Camera make (Nikon, Canon, ...)
	Make string
	// Model Camera model (D750, 5D Mark IV, ...)
	Model string
	// DateTime Date and time
	DateTime time.Time
	// Ext File extension (.jpg, .png, .raw, .nef, ...)
	Ext string
}

Data contains the relevant data extracted from a file's EXIF data.

func ReadExifData

func ReadExifData(path string) (*Data, error)

ReadExifData reads the EXIF data from a file and returns an ExifData struct.

Jump to

Keyboard shortcuts

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