xmp

package module
v0.0.0-...-6dc171e Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2020 License: MIT Imports: 8 Imported by: 0

README

webp_xmp

Golang: Read and write some meta data in webp files

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidRIFF  = errors.New("invalid RIFF container")
	InvalidWEBP  = errors.New("invalid WEBP format")
	VP8XNotFound = errors.New("VP8 extensible not found")
	XMPNotFound  = errors.New("XMP not found")
)

Functions

func Write

func Write(fileName, employeeName string, timeStamp int64, lat, long float64, location string) error

Types

type Profile

type Profile struct {
	Text      string  `xml:",chardata"`
	Name      string  `xml:"name"`
	Timestamp int64   `xml:"timestamp"`
	Location  string  `xml:"location"`
	Lat       float64 `xml:"lat"`
	Long      float64 `xml:"long"`
}

func Read

func Read(path string) (*Profile, error)

type Xmpmeta

type Xmpmeta struct {
	XMLName xml.Name `xml:"xmpmeta"`
	Text    string   `xml:",chardata"`
	X       string   `xml:"x,attr"`
	Xmptk   string   `xml:"xmptk,attr"`
	RDF     struct {
		Text        string `xml:",chardata"`
		Rdf         string `xml:"rdf,attr"`
		Description struct {
			Text    string  `xml:",chardata"`
			About   string  `xml:"about,attr"`
			Weladee string  `xml:"weladee,attr"`
			Profile Profile `xml:"profile"`
		} `xml:"Description"`
	} `xml:"RDF"`
}

Jump to

Keyboard shortcuts

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