mirror of
https://github.com/greflm13/StaticGalleryBuilder.git
synced 2026-02-05 02:59:27 +00:00
added xapmeta
This commit is contained in:
@@ -145,15 +145,15 @@ def get_image_info(item: str, folder: str) -> dict[str, Any]:
|
|||||||
del exifdata[key]
|
del exifdata[key]
|
||||||
else:
|
else:
|
||||||
exifdata = None
|
exifdata = None
|
||||||
|
tags = []
|
||||||
|
xmp = None
|
||||||
if xmp:
|
if xmp:
|
||||||
|
if xmp.get("xmpmeta", False):
|
||||||
if xmp["xmpmeta"]["RDF"]["Description"].get("subject", False):
|
if xmp["xmpmeta"]["RDF"]["Description"].get("subject", False):
|
||||||
tags = xmp["xmpmeta"]["RDF"]["Description"]["subject"]["Bag"]["li"]
|
tags = xmp["xmpmeta"]["RDF"]["Description"]["subject"]["Bag"]["li"]
|
||||||
else:
|
if xmp.get("xapmeta", False):
|
||||||
tags = []
|
if xmp["xapmeta"]["RDF"]["Description"].get("subject", False):
|
||||||
xmp = None
|
tags = xmp["xapmeta"]["RDF"]["Description"]["subject"]["Bag"]["li"]
|
||||||
else:
|
|
||||||
tags = []
|
|
||||||
xmp = None
|
|
||||||
return {"width": width, "height": height, "tags": tags, "exifdata": exifdata, "xmp": xmp}
|
return {"width": width, "height": height, "tags": tags, "exifdata": exifdata, "xmp": xmp}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user