exif

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

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

Go to latest
Published: Mar 2, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Exif

type Exif struct {
}

func (Exif) Decode

func (_ Exif) Decode(r io.Reader) (*Tags, error)

func (Exif) IsCriticalError

func (_ Exif) IsCriticalError(err error) bool

IsCriticalError given the error returned by Decode, reports whether the returned *Exif may contain usable information.

func (Exif) IsError

func (e Exif) IsError(err error) bool

func (Exif) IsExifError

func (_ Exif) IsExifError(err error) bool

IsExifError reports whether the error happened while decoding the EXIF sub-IFD.

func (Exif) IsGPSError

func (_ Exif) IsGPSError(err error) bool

IsGPSError reports whether the error happened while decoding the GPS sub-IFD.

func (Exif) IsInteroperabilityError

func (_ Exif) IsInteroperabilityError(err error) bool

IsInteroperabilityError reports whether the error happened while decoding the Interoperability sub-IFD.

func (Exif) IsShortReadTagValueError

func (_ Exif) IsShortReadTagValueError(err error) bool

func (Exif) IsTagNotPresentError

func (_ Exif) IsTagNotPresentError(err error) bool

type Tags

type Tags map[string]*tiff.Tag

func (*Tags) Contains

func (t *Tags) Contains(n string) bool

func (*Tags) Count

func (t *Tags) Count(n string) int

Count returns the number of values in the named tag. Returns 0 if the tag does not exist, otherwise a positive number

func (*Tags) Float

func (t *Tags) Float(n string, i int, d float64) (float64, error)

func (*Tags) Int

func (t *Tags) Int(n string, i int, d int64) (int64, error)

func (*Tags) Rat

func (t *Tags) Rat(n string, i int, d1, d2 int64) (*big.Rat, error)

func (*Tags) Rat2

func (t *Tags) Rat2(n string, i int, d1, d2 int64) (int64, int64, error)

func (*Tags) String

func (t *Tags) String(n, d string) string

Jump to

Keyboard shortcuts

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