mirror of
https://github.com/bpatrik/pigallery2.git
synced 2024-12-12 11:15:22 +02:00
#267 add XMP section 'subject' to keywords
This commit is contained in:
parent
d788af3a2d
commit
a4cb1188fe
@ -216,7 +216,11 @@ export class MetadataLoader {
|
|||||||
if (exif.Rating) {
|
if (exif.Rating) {
|
||||||
metadata.rating = (parseInt(exif.Rating.value, 10) as any);
|
metadata.rating = (parseInt(exif.Rating.value, 10) as any);
|
||||||
}
|
}
|
||||||
|
if(exif.subject && exif.subject.value){
|
||||||
|
for(let i=0; i < exif.subject.value.length; i++){
|
||||||
|
metadata.keywords.push(exif.subject.value[i].value);
|
||||||
|
}
|
||||||
|
}
|
||||||
if (exif.Orientation) {
|
if (exif.Orientation) {
|
||||||
metadata.orientation = (parseInt(exif.Orientation.value as any, 10) as any);
|
metadata.orientation = (parseInt(exif.Orientation.value as any, 10) as any);
|
||||||
if (OrientationTypes.BOTTOM_LEFT < metadata.orientation) {
|
if (OrientationTypes.BOTTOM_LEFT < metadata.orientation) {
|
||||||
|
@ -1,10 +1,22 @@
|
|||||||
{
|
{
|
||||||
|
"cameraData": {
|
||||||
|
"ISO": 50,
|
||||||
|
"exposure": 0.007751937984496124,
|
||||||
|
"fStop": 2.4,
|
||||||
|
"focalLength": 4.32,
|
||||||
|
"make": "samsung",
|
||||||
|
"model": "SM-G975F"
|
||||||
|
},
|
||||||
|
"creationDate": 1614703656000,
|
||||||
|
"fileSize": 7909,
|
||||||
|
"orientation": 1,
|
||||||
|
"rating": 50,
|
||||||
|
"Rating": 3,
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"Max",
|
"Max",
|
||||||
"Spaß",
|
"Spaß",
|
||||||
"Yanik"
|
"Yanik"
|
||||||
],
|
],
|
||||||
"Rating": 3,
|
|
||||||
"size": {
|
"size": {
|
||||||
"height": 47,
|
"height": 47,
|
||||||
"width": 100
|
"width": 100
|
||||||
|
Loading…
Reference in New Issue
Block a user