|
|
|
@ -25,6 +25,7 @@ class Metadata {
|
|
|
|
|
constructor (exiftool, picasa, opts) {
|
|
|
|
|
// standardise metadata
|
|
|
|
|
this.date = getDate(exiftool)
|
|
|
|
|
this.title = title(exiftool)
|
|
|
|
|
this.caption = caption(exiftool, picasa)
|
|
|
|
|
this.keywords = keywords(exiftool, picasa)
|
|
|
|
|
this.people = people(exiftool)
|
|
|
|
@ -78,6 +79,10 @@ function getFilenameDate (exif) {
|
|
|
|
|
return null
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function title (exif) {
|
|
|
|
|
return tagValue(exif, 'EXIF', 'DocumentName')
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
function caption (exif, picasa) {
|
|
|
|
|
return picasaValue(picasa, 'caption') ||
|
|
|
|
|
tagValue(exif, 'EXIF', 'ImageDescription') ||
|
|
|
|
|