Skip to content

Instantly share code, notes, and snippets.

@brucejackson
brucejackson / PhotoTaggingGramplet.py
Last active June 9, 2021 17:12
Gramps - PhotoTaggingGramplet.py - Modified to display person regions embedded in photos
#
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2013 Artem Glebov <artem.glebov@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
@brucejackson
brucejackson / \gramps\plugins\lib\libmetadata.py
Last active June 9, 2021 21:42
Gramps Display XMP Metadata (Including Faces) in Metadata viewer
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# Gramps - a GTK+/GNOME based genealogy program
#
# Copyright (C) 2011 Nick Hall
# Copyright (C) 2011 Rob G. Healey <robhealey1@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 29 columns, instead of 27. in line 2.
OccID,OccNo,OccClassID,OccClassID_DisplayEng,OccClassID_DisplayFre,OccDate,OccYear,OccTime,TimeZoneID,TimeZoneID_DisplayEng,TimeZoneID_DisplayFre,OccurrenceTypeID,OccurrenceTypeID_DisplayEng,OccurrenceTypeID_DisplayFre,AccIncTypeID,AccIncTypeID_DisplayEng,AccIncTypeID_DisplayFre,ActivityTypeID,ActivityTypeID_DisplayEng,ActivityTypeID_DisplayFre,CollistionTypeID,CollistionTypeID_DisplayEng,CollistionTypeID_DisplayFre,NumberTrainsInvolved,SubdOwnerID,SubdOwnerID_DisplayEng,SubdOwnerID_DisplayFre,SubdNameID,SubdNameID_DisplayEng
130707,R21H0088,5,5,5,6/29/2021 3:31:00 AM,2021,331,2,EST,HNE,3,INCIDENT,INCIDENT,38,MOVEMENT EXCEEDS LIMITS OF AUTHORITY,MOUVEMENT DEPASSE LIMITES AUTORISEES,4,PROCEEDING,MARCHE AVANT,,,,1,94,OTTAWA LIGHT RAIL TRANSIT SYSTEM,OTTAWA LIGHT RAIL TRANSIT SYSTEM,977,O-TRAIN LINE 1
130697,R21H0085,5,5,5,6/27/2021 10:25:00 AM,2021,1025,2,EST,HNE,1,ACCIDENT,ACCIDENT,45,R/S COLL. WITH OBJECT,MATERIEL ROULANT AVEC OBJET,2,MAINTENANCE,ENTRETIEN,,,,1,94,OTTAWA LIGHT RAIL TRANSIT SYSTEM,OTTAWA LIGHT
[Gramps SuperTool script file]
version=1
[title]
Import Ancestry URL and ID numbers
[category]
People
[initial_statements]
@brucejackson
brucejackson / metadata.csv
Created January 22, 2022 12:46
Comparison of metadata in IPTC-PhotometadataRef-Std2021.1.jpg (direct download and via discourse)
SourceFile AboutCvTermCvId AboutCvTermId AboutCvTermName AboutCvTermRefinedAbout AdditionalModelInformation AltTextAccessibility APP14Flags0 APP14Flags1 ApplicationRecordVersion Artist ArtworkCircaDateCreated ArtworkContentDescription ArtworkContributionDescription ArtworkCopyrightNotice ArtworkCopyrightOwnerID ArtworkCopyrightOwnerName ArtworkCreator ArtworkCreatorID ArtworkDateCreated ArtworkLicensorID ArtworkLicensorName ArtworkPhysicalDescription ArtworkSource ArtworkSourceInventoryNo ArtworkSourceInvURL ArtworkStylePeriod ArtworkTitle AuthorsPosition BitsPerSample By-line By-lineTitle Caption-Abstract CaptionWriter City ColorComponents ColorSpace ColorTransform Comment ComponentsConfiguration Copyright CopyrightNotice CopyrightOwnerID CopyrightOwnerName Country Country-PrimaryLocationCode Country-PrimaryLocationName CountryCode Creator CreatorAddress CreatorCity CreatorCountry CreatorPostalCode CreatorRegion CreatorWorkEmail CreatorWorkTelephone CreatorWorkURL Credit CurrentIPTCDigest DateCreated DateTim