metadata

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package metadata handles image exif and gets values from the exif.

Index

Constants

View Source
const (
	ReplaceColonChar = ""
	ReplaceSpaceChar = "_"
)

Default values for formatting datetime.

Variables

This section is empty.

Functions

func GetCameraModel

func GetCameraModel(imageExif *exif.Exif) (cameraModel string, err error)

GetCameraModel returns a string with the camera model of the exif and an error.

func GetDateTime

func GetDateTime(imageExif *exif.Exif) (dateTime string, err error)

GetDateTime returns a formatted string with the original capture time of the image.

func GetExif

func GetExif(sourceName string) (imageExif *exif.Exif, err error)

GetExif requires a source name from an image as an argument and returns an exif type with the metadata of the image and an error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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