goldsmith-components: github.com/FooSoft/goldsmith-components/plugins/exif Index | Files

package exif

import "github.com/FooSoft/goldsmith-components/plugins/exif"

Package exif extracts EXIF metadata stored in JPG and PNG files. In addition to extracting the raw GPS parameters (such as latitude and longitude), it is also able of optionally performing city and country lookups using a geographical "lookuper" provider. The provider for GeoNames, an open geolocation database is provided in this package.

Index

Package Files

exif.go exif_geonames.go

type Exif Uses

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

Exif chainable plugin context.

func New Uses

func New() *Exif

New creates new instance of the Exif plugin.

func (*Exif) Initialize Uses

func (plugin *Exif) Initialize(context *goldsmith.Context) (goldsmith.Filter, error)

func (*Exif) Lookuper Uses

func (plugin *Exif) Lookuper(lookuper Lookuper) *Exif

func (*Exif) Name Uses

func (*Exif) Name() string

func (*Exif) Process Uses

func (plugin *Exif) Process(context *goldsmith.Context, inputFile *goldsmith.File) error

type LookupData Uses

type LookupData struct {
    City    string
    Country string
}

type Lookuper Uses

type Lookuper interface {
    Lookup(latitude, longitude float64) (*LookupData, error)
}

type LookuperGeonames Uses

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

func NewLookuperGeonames Uses

func NewLookuperGeonames(reader io.Reader) (*LookuperGeonames, error)

func NewLookuperGeonamesFile Uses

func NewLookuperGeonamesFile(path string) (*LookuperGeonames, error)

func (*LookuperGeonames) Lookup Uses

func (lookuper *LookuperGeonames) Lookup(latitude, longitude float64) (*LookupData, error)

Package exif imports 7 packages (graph). Updated 2019-07-08. Refresh now. Tools for package owners.