2020-01-07 17:36:49 +01:00
|
|
|
/*
|
|
|
|
This package encapsulates image metadata decoding and conversion to/from XMP and Exif.
|
|
|
|
|
|
|
|
Additional information can be found in our Developer Guide:
|
|
|
|
|
|
|
|
https://github.com/photoprism/photoprism/wiki
|
|
|
|
*/
|
|
|
|
package meta
|
|
|
|
|
|
|
|
import (
|
2020-01-14 01:47:26 +01:00
|
|
|
"github.com/dsoprea/go-exif/v2"
|
2020-01-07 17:36:49 +01:00
|
|
|
"github.com/photoprism/photoprism/internal/event"
|
|
|
|
)
|
|
|
|
|
|
|
|
var log = event.Log
|
|
|
|
var im *exif.IfdMapping
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
im = exif.NewIfdMapping()
|
|
|
|
|
|
|
|
if err := exif.LoadStandardIfds(im); err != nil {
|
|
|
|
log.Errorf("meta: %s", err.Error())
|
|
|
|
}
|
|
|
|
}
|