# Image Metadata display

**URL:** <https://gramps.discourse.group/t/image-metadata-display/1873>\
**Category:** Help\
**Tags:** third-party-addon, metadata, supertool-script\
**Created:** [October 1, 2021, 8:37pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873 "2021-10-01T20:37:46Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [October 1, 2021, 8:37pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/1 "2021-10-01T20:37:46Z")

</div>

Just installed Gramps 5.1.4 for Windows, though I have been using it off and on for quite some time and am still subscribed to the old sourceforge mailing list. A [recent announcement about the developer for gexiv2 wishing to step down](https://www.spinics.net/lists/gimpdev/msg35802.html) caught my eye. Not that I want to step in as a replacement - my experience with Gtk & github, Python etc is way too limited to take on something like that, but …  
It got me curious about the plugin mentioned [Editexifmetadata](https://gramps-project.org/wiki/index.php/Edit_Image_Exif_Metadata) , which seems to have fallen by the wayside.

There seems to be limited display of media metadata in 5.1.4, presumably via gexiv2, and I am curious if there is any way to customize or add to the data displayed in the metadata tab.

In particular, I am more interested in XMP or IPTC data describing the content of the image, rather than merely data about the size & data of the image.

As part of my posting here I have found an earlier thread and will have to have a closer look at the thread later, since that thread is closed.

I am not so much interested in editing, though it might be nice to fix typos and other such ‘small issues’, but it would be very helpful if one could at least review the data.

As well, I am curious if anyone has suggestions as to which tags are useful or which to avoid.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [October 27, 2021, 5:16pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/2 "2021-10-27T17:16:26Z")

</div>

When looking through GitHub pulls, noticed that [Bruce Jackson posted a patch](https://github.com/gramps-project/gramps/pull/1263) revising the Image Meta Viewer to include IPTC, XMP & named regions with thumbnails.

It seems to be in line with your interests here. Maybe you could try it and post some feedback?

There have also been recent reference additions to the [See Also](https://gramps-project.org/wiki/index.php/Edit_Image_Exif_Metadata#See_also) because of activity in groups trying to promote metadata standards.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [October 28, 2021, 2:04pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/3 "2021-10-28T14:04:33Z")

</div>

The have been a number of posting about metadata in this forum. Going try adding a list of them here to see if Discourse adds a cross-reference annotation to each thread.

[https://gramps.discourse.group/t/0012219-expand-imagemetadata-gramplet-to-support-xmp-and-iptc-metadata-tags](https://gramps.discourse.group/t/0012219-expand-imagemetadata-gramplet-to-support-xmp-and-iptc-metadata-tags)

> [@Suggested Update to PhotoTaggingGramplet to Support XMP Face Regions](https://gramps.discourse.group/t/suggested-update-to-phototagginggramplet-to-support-xmp-face-regions/1209):
>
> I manage all my image metadata and face tags in DigiKam and then add the photos to Gramps. Currently, Gramps doesn’t read the XMP Face regions embedded in the image files. I use the Windows AIO and therefore can’t use face detection. So I have been left to manually redraw the regions and tag people. I found this support topic - [0007442: [PhotoTagging] Read face metadata created by Digikam (KDE) from image (jpg) XMP metadata and autolink to persons - Gramps - Bugtracker – Free Genealogy Softw…](https://gramps-project.org/bugs/view.php?id=7442)

> [@Which software to import Gramps media's information into XMP pictures tags?](https://gramps.discourse.group/t/which-software-to-import-gramps-medias-information-into-xmp-pictures-tags/1529):
>
> I read with interest other posts about importing XMP and Exif tags in Gramps. I’ve also recently seen a YouTube video about Heredis where the guy after he records a source and includes its picture, he copies the source/citation name he uses in Heredis and pastes it in the comment field of the picture in the Windows file explorer to somehow make them “synchronized”. I have a lot of named medias or people position described in gramps medias but they aren’t in the pictures XMP fields and I would …

> [@Utilize media metadata Date and Face-Tags in import and references](https://gramps.discourse.group/t/utilize-media-metadata-date-and-face-tags-in-import-and-references/1430):
>
> I am using media a lot and my fotos used in gramps already have metadata (EXIF/XMP/IPTC) for date, location, gps and facetags. When adding such media currenty date and reference to person and defining region (as substitue for facetag) have to be added manually. It would be of great advantage to me and probably others as well, if this information already available would be utilized by gramps. Before I write a feature request I would like to know your opinion on the topic of utilizing media meta-d…

> [@Adding new Sources/Citations in bulk](https://gramps.discourse.group/t/adding-new-sources-citations-in-bulk/247):
>
> HI All, I have a large number of directories that contain pictures that I want to associate with the various people in my tree. At this point, I think that all of the pictures have the EXIF data modified to include the names of the people in the picture. I know perl, so I’m comfortable writing a script to scan the tree and create a list of pictures in each director, where a directory would be a single source… Think of it as a roll of film… Each file in the directory would be a single picture… …

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [October 28, 2021, 3:23pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/4 "2021-10-28T15:23:44Z")

</div>

I much appreciate the feedback;  
Unfortunately I am not familiar enough with experimenting with patches to be able to try and check out this feature.  
Still I am hoping that the code will eventually make it into the mainstream.  
Any estimates on when that might happen?

Almost all of my experience is in C++ on Windows and I don’t have enough background with Python, specifically with debugging anything in the rather large Gramps universe.

At one time I had been working with and building Gramps AIO packages for Windows, but never with the Python code itself.  
Since then, I have been sidetracked into trying to build a utility which would make it possible to add enough metadata to images etc to make it useful in any case.  
Making it usable and useful under Gramps is a more remote goal on that track.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [October 28, 2021, 4:14pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/5 "2021-10-28T16:14:23Z")

</div>

Fortunately, installing patches is fairly straightforward… even for those of us not using any of the GitHub automation.

The top-level of the patch tell you how many files have had changes, which files, their filepaths (in relation to the Gramps application installed location) & highlights the differences. (Those differences offer a good introductory approach to understanding Gramps & Python.)

The first impression (that you will have go through manually and edit each changed line) is alarming but erroneous. It is easier than that.

 ![Screenshot_20211028-110131](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/9/9de060fb1150b6feb191cfa488b5a3c0d5b91e17.png)

You can ignore most of this and just view the raw file, copy the contents & (after backing a backup of the target file) paste those contents into the target file.

 ![Screenshot_20211028-110255](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/c/c5cd4aa63d6690ab49e3c88ea52d2fa6f8931abd.png)

Usually, the hardest part is turning off ‘hiding’ of the target file directories and gaining permission for the OS to save the updated file.

If you have any serious intent to “customize or add to the data displayed in the metadata tab”, it will be necessary to become acclimatized to this process.

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [October 28, 2021, 7:55pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/6 "2021-10-28T19:55:19Z")

</div>

With a bit of trial and error, I think I have installed the patch and found a lot about Python’s fussiness regarding spaces etc 😉  
{I tried patching existing files first, then downloaded the files )

Guess I’ll have to find out more about where Gramps hides it’s log files 😉

As far as I can tell, it works well enough for the few images and their metadata I have tested.

Though, I will still have to look it over better to see which data is supported and which will need to be added or …

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [October 28, 2021, 8:11pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/7 "2021-10-28T20:11:22Z")

</div>

It is definitely worthwhile [starting Gramps from the command line](https://gramps-project.org/wiki/index.php/Gramps_5.1_Wiki_Manual_-_Command_Line) on occasion. (And certainly when installing something new.) Because all the complaints and grumblies that are usually invisible become very accessible.

The warnings are piped to the command line console and remain visible even if Gramps spontaneously closes itself.

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [October 29, 2021, 12:48am UTC](https://gramps.discourse.group/t/image-metadata-display/1873/8 "2021-10-29T00:48:56Z")

</div>

Thank you for that reminder. I have heard it mentioned before, but never was close enough to testing to need it.  
Looks like it might come in handy as work on this part of Gramps moves along/

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [October 31, 2021, 12:26pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/9 "2021-10-31T12:26:56Z")

</div>

> [@metadata](#):
>
> Though, I will still have to look it over better to see which data is supported and which will need to be added or …

Would you share your progress with us occasionally? I [recently did an experiment with Picasa](https://www.facebook.com/groups/www.fhmwg.org/permalink/4887802254605183/) and intended to bring in the metadata to Gramps. The machine learning for face recognition was very interesting but it was all XMP that not even Google’s cloud-based replacement tool recognized.

I am wondering if I brought in samples from Picasa and Google Images file, whether it would be possible to extend the a file’s metadata so that it would be readable by either?

One of my big questions is how to make such data portable for genealogy? For instance, maybe there is a focal person for a group and each person might have a genealogical numbering system reference number relative to that person?

So, for a family reunion photo, the metadata might include the focal ancestor (who is generations past & not even in the photo) and metadata includes a [Modified Henry](https://gramps-project.org/wiki/index.php/Genealogical_Numbering_Systems#modified_henry) Numbering system (with Spouse S1, S2, S3… suffix where necessary) to facilitate associating the persons if the photo is imported into a foreign tree. Once you crosswalk the reference person, there’d be some intelligence for refining matches on the others.

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [October 31, 2021, 4:43pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/10 "2021-10-31T16:43:01Z")

</div>

I have no experience (yet) with adding face recognition data to metadata, though I have used Picasa in the past, before Google abandoned it.  
From what I know now, there is a fair bit of face recognition related information support in metadata, though I have not done anything with it nor really checked out any images with such data.

On the whole genealogy & metadata covers a lot and I am surprised there is not much I have been able to find regarding its usage for genealogy…  
In fact even inspecting/editing and adding information to metadata is not well served, IMO.

There are several areas, in this respect which need to be considered (and worked on)

- as mentioned, just being able to inspect … metadata for images and other related documents, mainly PDF
- figuring out which metadata is adaptable to genealogy - up to now, the metadata ‘bus’ was/is driven mainly by news, image & data processing companies; recently there seems to be some development in the genealogical community to get involved in using metadata: [https://fhmwg.wordpress.com/](https://fhmwg.wordpress.com/)
- adapting genealogical software to at least recognize and display some metadata, and eventually more and more genealogically related data
- adapting genealogical software to possibly analyze & use some of this metadata

As for sharing my progress, this is precisely why I started this thread.  
As my own project to at least inspect and modify image metadata for JPG evolves and become usable, finding answers to the rest of the issues becomes more important.

It is because I wanted to embed much of this information into my images that got me started on investigating metadata.  
The software to inspect or modify the data was mainly command line based, which is a bit tedious for most of us. There is some GUI related software, but none seemed to do what I thought I needed/wanted.

My current app for metadata inspection is getting close to workable, with fewer and fewer warts and holes. Once it is ready for beta testing I most certainly want to make it available, though for a start it will likely remain closed source. It is/was inspired by (the now abandoned) ExiftoolGUI from Bogdan Hrastnik : [https://exiftool.org/gui/](https://exiftool.org/gui/)

As for your question regarding those Henry numbers I have no answers myself, but I’d encourage you and anyone else interesting using metadata for genealogy work to investigate the working group and become involved: [https://fhmwg.wordpress.com/](https://fhmwg.wordpress.com/)

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [November 2, 2021, 8:55pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/11 "2021-11-02T20:55:51Z")

</div>

FWIW, I have just found ImageRanger - not free, but reasonable & not cloud-based - and it allows me to add face data which I can read back via Exiftool.

It would seem that if one wanted to add Henry numbers, the simplest place (and IMO, most logical place, unless we can find a specific location for such data) would be as part of the name associated with the face.

---

<div class="post-metadata">

**Author:** ![StoltHD](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@StoltHD](https://gramps.discourse.group/u/StoltHD)\
**Post date:** [November 2, 2021, 9:09pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/12 "2021-11-02T21:09:31Z")

</div>

DigiKam have face recognition are open source and free.

- New Neural Network engine based on [OpenCV Deep Learning](https://opencv.org/) module to detect and recognize faces.

It use Exviv2…

- Use last Exiv2 0.27.4 in all bundles with Base Media File metadata read and write support (HEIF, AVIF).
- New metadata viewer based on ExifTool

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [November 2, 2021, 9:52pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/13 "2021-11-02T21:52:42Z")

</div>

I have Digikam, but was not able to find out how to add face data nor how to make sure it is written to the image.  
I do admin to not spending a lot of time to find out how, but I am pleased to know that DK can do so and will investigate that facility some more - as time permits 😉  
Any good places to find a howto?

---

<div class="post-metadata">

**Author:** ![StoltHD](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@StoltHD](https://gramps.discourse.group/u/StoltHD)\
**Post date:** [November 2, 2021, 10:29pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/14 "2021-11-02T22:29:25Z")

</div>

> [@metadata](#):
>
> Any good places to find a howto?

I will see if I can find something for you… but do not hold your breath please…

I think you can find some information here: [digiKam - digiKam 7.0.0 is released](https://www.digikam.org/news/2020-07-19-7.0.0_release_announcement/)

And maybe more if you follow the different links provided there…?

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [November 3, 2021, 12:50am UTC](https://gramps.discourse.group/t/image-metadata-display/1873/15 "2021-11-03T00:50:49Z")

</div>

No problem 🙂 I’ll look around and play with Digikam

---

<div class="post-metadata">

**Author:** ![StoltHD](https://avatars.discourse-cdn.com/v4/letter/s/db5fbb/32.png) [@StoltHD](https://gramps.discourse.group/u/StoltHD)\
**Post date:** [November 3, 2021, 1:00am UTC](https://gramps.discourse.group/t/image-metadata-display/1873/16 "2021-11-03T01:00:58Z")

</div>

Can you give me some clues about what you will need of information?

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [November 3, 2021, 5:11am UTC](https://gramps.discourse.group/t/image-metadata-display/1873/17 "2021-11-03T05:11:55Z")

</div>

Suppose I have a family picture of some ancestors.  
What I need, is to find out how to use Digikam to have it detect the faces and how to add names to go with each face.  
Then I need a way to ensure the data is written to the metadata in the image.  
After that, I am sure I can read back any data which has been written.  
There seem to be at least 2 ‘formats’, i.e. groups of metadata tags which are commonly used for this purpose.  
I am not really familiar with any of these formats, but since I can read back all there is, I would expect that with a few samples, we can sort out what goes where.  
Somewhere along the way, I would also expect the FHMWG will eventually - don’t recall right now whether they have done so - define preferred or recommended metadata tag groups.  
If they do, they most likely will also provide some sample code to inspect the fields they recommend.

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [January 16, 2022, 10:05pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/20 "2022-01-16T22:05:17Z")

</div>

> From: Arnold Wiegert  
> To: gramps-users@lists.sourceforge.net  
> Sent: Sat, Jan 15, 2022 at 12:49  
> Subject: [Gramps-users] Image metadata utility for Windows
> 
> I have just released a utility to read and modify image metadata for JPG, PNG & TIF files.
> 
> It is simply a GUI front-end for the Exiftool library and currently only runs under Windows. As well, it is intended to support multiple languages, though that part is currently very much in its ‘infancy’ because my experience in that area is very recent and limited.
> 
> It was inspired by the no-longer-supported ExiftoolGUI app, though there are a number of differences.
> 
> The project was motivated by my need to add metadata directly to the image files for my genealogical work, rather than to rely on file naming and directory tree structure alone.
> 
> You can find it at: [http://www.wxutils.com/wxeti.php](http://www.wxutils.com/wxeti.php)
> 
> The installation notes and the help file will give you a better idea of the prerequisites (Exiftool needs to be installed separately) and the current capabilities.
> 
> Direct feedback can be sent to [feedback@wxutils.com](mailto:feedback@wxutils.com) or to this forum, if that is acceptable to the moderators
> 
> Arnold

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [January 16, 2022, 11:20pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/21 "2022-01-16T23:20:29Z")

</div>

Yes, I did look into named regions etc, though I more or less forgot about the posting.

And yes, the extra data would be of interest and I have to start looking at that patch. Still, all of that is a bit scary right now, because I have never really worked much with patching etc, least of all github. Still, I do use git for my local code management. so it is just a matter of getting used to some new things.

I just finished getting the latest Gramps code from Github to run on my VM, but will have to also look into installing the Edit Exif Metadata plugin to see where it is at.

---

<div class="post-metadata">

**Author:** ![metadata](https://avatars.discourse-cdn.com/v4/letter/m/e36b37/32.png) [@metadata](https://gramps.discourse.group/u/metadata)\
**Post date:** [January 29, 2022, 9:01pm UTC](https://gramps.discourse.group/t/image-metadata-display/1873/22 "2022-01-29T21:01:51Z")

</div>

Finally did get a chance to follow up on this.  
FWIW, I have given up on my VM-base Gramps project and instead installed Gramps on a stand-alone Mint box.  
But first I had to try and find which of the several copies of Gramps hanging around on my systems had the Metadata patch installed.  
(Side question: how do the developers keep track of things like which copy has what?  
No doubt, when one works on such a project more seriously, one might not need such  
crutches, but for myself, where it might be weeks between getting a chance to follow up,  
some details just disappear in the dust & the ‘rearview mirror’.)

Back to the topic:

1. my first impression is that it works, though I have not yet seen any thumbnails for any of the images I have tried.
2. as it seems that the purpose of the gramplet is to display metadata from other sections than EXIF, perhaps ‘Exif’ should be dropped from the gramplet name.
3. much of the displayed metadata, especially several fields from EXIF, IMO, are of little, if any relevance for genealogy, such as Pixel?Dimension and could easily be dropped to make more room for the more important fields from XMP or IPTC specs.

From what I have seen, this version looks very promising and I will be working with it from here on out.

[Next page](https://gramps.discourse.group/t/image-metadata-display/1873.md?page=2)
