Skip to content
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

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Nick-Hall
Copy link
Member

Gedcom 7.0 allows an URL with scheme ftp, http, or https in the FILE tag.

See:

https://gedcom.io/specifications/FamilySearchGEDCOMv7.html#FILE

Gedcom 7.0 allows an URL with scheme ftp, http, or https in
the FILE tag.

See:

https://gedcom.io/specifications/FamilySearchGEDCOMv7.html#FILE
@Nick-Hall Nick-Hall added the string Requires string changes label Jul 14, 2023
@janskarvall
Copy link

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.
The media shows up in the report as a clickable web icon under the heading "Other media: vidéos, pdfs....". Clicking on the icon shows a page where it is stated that the file has been moved or deleted. Maybe clicking on the web icon under the heading "Other media: vidéos, pdfs...." could open that webpage instead of opening the page that now says that the file has been moved or deleted. Also the heading "Other media: vidéos, pdfs...." should mention web accessible media somehow.

@janskarvall
Copy link

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.

@Nick-Hall
Copy link
Member Author

@janskarvall Thanks. I'll try to look at this again soon.

@Nick-Hall Nick-Hall removed the string Requires string changes label Aug 1, 2023
@janskarvall
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants