exif

package
v0.0.0-...-6cd0f2a Latest Latest
Warning

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

Go to latest
Published: May 1, 2015 License: MIT Imports: 6 Imported by: 1

Documentation

Overview

Package exif provides a go interface for exiftool.

Index

Constants

View Source
const EXIFTOOL = "exiftool"

Variables

This section is empty.

Functions

func Exists

func Exists() bool

Exists returns true if "exiftool" is installed anywhere on the user's $PATH.

Types

type Exif

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

func Decode

func Decode(r io.Reader) *Exif

Decode can be used for unnamed files, for example STDIN. It loads the exif data from the file given.

func Load

func Load(path string) *Exif

Load creates a new Exif object, populated with the exif data of the file at the path given. It will silently fail if any errors are encountered.

func New

func New() *Exif

New creates an empty Exif object. To initialize with the exif data of an existing image use Load.

func (Exif) Get

func (e Exif) Get(key string) string

Get returns the value for the key given. The key should be in CamelCase form.

func (Exif) Keys

func (e Exif) Keys() []string

Keys returns a list of all exif data keys present.

func (Exif) Save

func (e Exif) Save() error

Save will write the changed (and only the changed) exif data to the path that was initially given.

func (Exif) Set

func (e Exif) Set(key, val string)

Set changes the value of the key. The key should be in CamelCase form.

func (Exif) String

func (e Exif) String() string

func (Exif) Write

func (e Exif) Write(path string) error

Write will write to the path given all of the exif data (changed or unchanged).

Jump to

Keyboard shortcuts

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