-
Notifications
You must be signed in to change notification settings - Fork 302
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Face Tags in Group Photos #2358
Comments
See also #744 |
Since some years I sucessfully use this plugin: In addition see this thread: https://www.webtrees.net/index.php/en/forum/2-open-discussion/30219-how-to-mark-individuals-on-group-photo |
Searching that repo for the _POSITION tag, nothing is found. So I assume that plugin is in no way compatible with the data already stored in my gedcom file. 😕 |
Looks like that plugin stores the tags in a new table using some unspecified JSON string. If I had all the free time in the world, I could write a PHP importer to convert individual gedcom tags into database JSON records. Based on what I read in the thread linked above, I would have to re-run the custom importer after every gedcom import in order to re-associate the media objects. Probably days of effort to get all of that working. |
The labels/positions can also be stored in the JPEG EXIF data.
This could create issues when records are merged/renamed. The links would need to be updated. |
Understood, but there is no reason for me to figure out how to convert FTB gedcom data to EXIF when webtrees already understands most of the gedcom.
That would be a concern for the plugin developer. I am only interested in how to import the data to the existing plugin, if that works. |
@miqrogroove I can add support for _POSITION. But: https://www.webtrees.net/index.php/en/forum/2-open-discussion/30219-how-to-mark-individuals-on-group-photo?start=260#70306 |
Yes, I see the gedcom uses 1 OBJE to represent the photo under each individual, and then 2 _PHOTO_RIN to group the objects. Webtrees does import the _PHOTO_RIN, making it just as easy to scan the gedcom file and associate the _POSITION tags with the correct webtrees records. Like I said, it would be a few days of work and maybe I can take care of it later this year. |
@fisharebest Do you have any interest in expanding the wt_link schema to support this? Or is my re-scan of the gedcom file the best way to go? |
BTW - I have never seen a FTB gedcom with the custom tags. Perhaps post an example here? |
Based on the discussion about webtrees importing only one tag per photo, it really seems like it's just not saved in the right place. By adding even one more field to wt_link it would be possible to save this data during any gedcom import. This table already stores multiple data points per photo by relating them to individuals. I can upload a sample later tonight. |
Used within an individual record as exported by FTB...
|
@miqrogroove seems like your example will be imported successful. Because it's doesn't contains "duplicated" objects with same filename. Demo tree with Kennedy family contains:
Full tree here: https://gist.github.com/UksusoFF/629e2054c7e2a3f3f20380c26c3c08ef |
I've got a script that is working now to import all face tags from FTB to the webtrees plugin table. It parses the first-level and second-level gedcom sections to find the individual OBJE records that contain a _POSITION. It then truncates the plugin table and converts the _POSITION tags to new database rows. This was necessary because the plugin table is not indexed properly for a INSERT ... ON DUPLICATE KEY query. |
@miqrogroove Can you show it? Which table you use? Seems it's not Webtrees issue anymore (third-party plugin dependent). |
Yes, it is a hack for a plugin. I'd still like to hear from @fisharebest about expanding wt_link to carry some gedcom data. I will add a repo for the conversion script. You will be welcome to reuse it. |
I am not going to have any time for this until after the 2.0 release. My initial thoughts are not to modify e.g. we link a source to an individual. We then need to search the individual record to find the facts that reference the source. |
Ok I will just use the modules and hacks. |
One of the major roadblocks preventing me from migrating from FTB to webtrees as my primary tree software is that all of my face tags are stored in FTB. For each person in each photo, I can draw a rectangle on a face and associate it to an individual record. This all gets saved in the gedcom file and exported as well.
Webtrees does a good job of importing the tags connecting the individual to a list of photos, but it ignores the _POSITION line item that lists the four coordinates for the face rectangle.
Is it possible to some day have these face tags displayed in webtrees, and eventually be able to edit them as well?
The text was updated successfully, but these errors were encountered: