xmp

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CreateDate = tagString("xmp:CreateDate") // used for exif/DateTimeDigitized

	Rating = tagInt("xmp:Rating")

	DateTimeOriginal = tagString("exif:DateTimeOriginal")

	GPSLatitude  = tagCoord("exif:GPSLatitude", 'N', 'S')
	GPSLongitude = tagCoord("exif:GPSLongitude", 'E', 'W')

	GPSTimeStamp = tagString("exif:GPSTimeStamp") // includes exif/GPSDateStamp

	Orientation = tagInt("exif:Orientation")

	Make  = tagString("tiff:Make")
	Model = tagString("tiff:Model")
)

Functions

This section is empty.

Types

type Float64Func

type Float64Func func(m *Meta) (value float64, ok bool)

type IntFunc

type IntFunc func(m *Meta) (value int, ok bool)

type Meta

type Meta struct {
	XMLName xml.Name `xml:"adobe:ns:meta/ xmpmeta"`
	Rdf     Rdf      `xml:"http://www.w3.org/1999/02/22-rdf-syntax-ns# RDF"`
}

func Decode

func Decode(r io.Reader) (*Meta, error)

func (*Meta) Float64

func (m *Meta) Float64(f Float64Func) (value float64, ok bool)

func (*Meta) Int

func (m *Meta) Int(f IntFunc) (value int, ok bool)

func (*Meta) String

func (m *Meta) String(f StringFunc) (value string, ok bool)

type Node

type Node struct {
	XMLName  xml.Name
	Node     []Node `xml:",any"`
	CharData []byte `xml:",chardata"`
}

type Rdf

type Rdf struct {
	Desc []Node `xml:"http://www.w3.org/1999/02/22-rdf-syntax-ns# Description"`
}

type StringFunc

type StringFunc func(m *Meta) (value string, ok bool)

Jump to

Keyboard shortcuts

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