-
Notifications
You must be signed in to change notification settings - Fork 399
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
Allow web-accessible file references in media objects #1447
base: master
Are you sure you want to change the base?
Conversation
Gedcom 7.0 allows an URL with scheme ftp, http, or https in the FILE tag. See: https://gedcom.io/specifications/FamilySearchGEDCOMv7.html#FILE
An alternative to implenting URL handling in the GUI code would be implementing all file handling centrally in |
I made a quick test making a web report from a simple tree with one person having a reference to a media object with a web url. |
An html page may have a favicon (See "https://en.wikipedia.org/wiki/Favicon") that could be used as a "thumbnail". See for example the MIT licensed "https://pypi.org/project/favicon/". The first frame in a video could too. I used ffmpeg to extract it on Linux, but there may be other ways to extract it that is more portable. |
@janskarvall Thanks. I'll try to look at this again soon. |
Maybe a bit off topic, but I am thinking that showing the Media reference editor when adding web accessible media to a gallery is superfluous as long as the media reference has nothing more to add than cropping information. Looking closer, the media reference can override the title, which seems usable when e.g. the picture shows several people and it is cropped down to a singel person. But for media that can not be cropped, there is not likely any need to override the title. The same reasoning I think is valid for any non-image media. According to GEDCOM 7 MULTIMEDIA_LINK: The optional CROP (p.72) substructure indicates that a subregion of an image represents or applies to the superstructure. The optional TITL (p.91) substructure supersedes any OBJE.FILE.TITL substructures included in the MULTIMEDIA_RECORD . The Media reference editor in gramps does not support overriding the title. Maybe it should. |
Gedcom 7.0 allows an URL with scheme ftp, http, or https in the FILE tag.
See:
https://gedcom.io/specifications/FamilySearchGEDCOMv7.html#FILE