exif

package
v0.0.0-...-06d4d79 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2024 License: Apache-2.0 Imports: 6 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",
	"samsung":                     "Samsung",
}
View Source
var ModelMap = map[string]string{
	"FinePix X100": "X100",
}
View Source
var OnlyAlphaRegex = regexp.MustCompile(`\W+`)
View Source
var WhiteSpaceRegex = regexp.MustCompile(`\s+`)

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