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-data.
I invision to utilize metadata(jpg,png) as follows:
a) EXIF-DATA: When adding media propose date taken from exif-date
b) When referencing media from a person use face-tag postion as āreferenced regionā. This avoids to draw manually each face which has been defined alread in the first place. Association between person and facetag-text could be done aquivalent to person-portrait. Facetag of first picture is associated with person.
c) Showing face-tags respective person-name in Image-data or new tab.
ā¢ Even more comfort would be to offer all face-tags respective person-name as reference when adding media
ā¢ Also helpful, but independend could be
ā to sort media in galleries according exif-date (or date entered.
ā Utilize gps-position (or textual location) to add to places
There is already an acknowledged Feature Request dealing with metadata, actually Expand ImageMetadata gramplet to support XMP and IPTC metadata tags, but it does not cover ideas presented above. Besides comfort of such features it avoids to duplicate information which is prone for inconsistency which I hate.
Whatās your though on that ?
BTW: Gramps is such a powerful tool , therefore I take the opportunity to thank all who have and still do contribute to gramps. And I am waiting eagerly for version 5.2!
I have created a Gist on Github code that updates the Photo Tagging Gramplet. This update displays existing regions in images and allows a user to associate a Gramps Person avoiding the need to redraw the region.
I tried your enhanced version - it basically works fine! However, I do not understand how this frist step can be used āfor some reassurance for the user and to help with Photo Taggingā
It would be great to follow this up and enhance in order to propose references to all named persons. As described above, actually adding persons in the galeria for the person with a portrait (first foto) with this face-tag.
I know it is experimental, I found some problems:
1.) soemtimes faces are show only half height
2.) Sometimes face tags are missing at all - it seems to me this happens in case the face tag is at the edge of a foto (which actually happens with many of my portrait-fotos)
Anyway, thanks for taking the idea to a first step
Would you be willing to send me one of these photos so that I can try and reproduce the issues and fix it?
This attempt to reassure that I didnāt delete any metadata in their image. Let me try and explain, this is because of issues I ran into in modifying the 2 gramplets. I have proposed changes to 2 gramplets:
Image Metadata (part of Gramps Core (outlined in blue)
Photo Tagging Gramplet (an addon) (outlined in red)
I had problems when modifying the Photo Tagging Gramplet that caused extra regions to appear. As a result, the Photo Tagging Gramplet only shows the XMP Regions if the photo has not been associated with a Person by manually drawing regions or added to a person gallery. I decided it would be good for the Image Metadata gramplet to show the region and face so that the user still knows the photo metadata is unaltered.
When you use the Photo Tagging gramplet and associate a person to the XMP Named Region, that portrait will appear in the personās gallery in the last position.
I tried to modify the search box that appears when you select a person from the PhotoTagging gramplet. I wanted to pass the name in the photo metadata region and search for that value against the names in Gramps. I could not make it work. I donāt understand the Gramps Code well enough. There is a Filter option in the SelectPerson function that I think I need to use but I donāt see what I need to pass.
Thanks your follow up my remarks. I attach 3 fotos which have the behaviour described above:
Sometimes face tags are missing at all - it seems to me this happens in case the face tag is at the edge of a foto (which actually happens with many of my portrait-fotos
Actually portraits are extracted from marriage foto. Portrait foto of Wimmer Anna works well, however Portrait of Artner Josef does not show face tage in Metadata-View. face-tag region is identical wih left border of foto - I could track this behavior down several times to that cause.
Ad haf-sized face-tag
Actually when I start gramps face-tags of the marriage foto are shown correctly. Switching to another foto the effect appaear that only half is shown, also when switching back to fot which worked in the first time.
Hope this helps to track down reasons for this behaviour - and thanks again for following up these topics.
Thanks for the images. I didnāt see any face regions in the metadata and want to make sure nothing was stripped out by the Discourse software. Iām going to send you a Direct Message with my email address. Could you email the photos to me and some of the examples where the region is at the edge of the photo.
I used ExifTool (https://exiftool.org/) to examine the metadata tags in the first file. The result showed there are no face regions embedded in the file.
PS C:\exiftool> exiftool -s -XMP-mwg-rs:all 'c:\exiftool\19081103-000000 Hochzeit Artner Josef und Anna - Pfarre Bruck an der Leitha.jpg'
PS C:\exiftool>
I expected to see a result similar to this example.
Perfect. The files in the dropbox link contain the regions.
I can reproduce the issue you are seeing with image thumbnails being half-height. I use a custom Theme with Gramps and I donāt have this issue. When I reset Gramps to the default theme, the full image thumbnail does not appear.
I can reproduce the problem with āArtner, Josef.jpgā not showing all image metadata.
I have updated my code on github. These changes address the Face Region being past the edge of the image.
and
In testing for the issue of how the thumbnail is displayed:
I found that the Adwaita and High Contrast themes had problems displaying the full height of the thumbnail. The Raleigh theme seems to display properly. I installed a theme following these instructions: Windows AIO themes - Gramps I am using Gradient-Blue-318 and it seems to work okay.
Maybe someone who knows more about themes will read this and be able to offer some guidance.
Thanks for your updated Photo TaggingGramplet. Face region work fine not only for the example, but for a lot of face-tags which I browsed which previously failed.
Thumbnails are displayed now fully in my environment completely
Thanks again, the feature helps for manually assigning persons!
In the long run I hope someone will take care of automatism as proposed in this topic and other similar ideas posted in mantis
Alfred
It appears that the GIST hasnāt been modified in the last 2 years or so. Iād like to explore face tagging but it would be nice to know if the code is still likely to work.
BTW, does anybody know if XMP face tagging is compatible between various bits of software. Some reading yesterday suggested that Lightroom, DigiKam, ACDSee, et al, may all have slightly different approaches? Is the PhotoTagging gramplet specific to one or work most or all XMP-tagged files?