Skip to main content

Manage medias files

This window is a Media Manager that lets you ensure that all media files used in your genealogy exist, either on your local disks or on the Internet, that they are used, and that they correctly link to your Gedcom file events.

A typical situation where you need to use this tool is if you have modified your photo folders for instance, or if you have just migrated your genealogy from another software.

    en-file-medias-1.png

    Description

    The windows is made of 2 areas:

    • A statistics area providing the number of files by category, the full directory name of the location of the Gedcom file, from which relative path files are to be considered, and a button to see all the media files.
    • An edition area where you can make 3 types of modifications and undo them
      • Swap paths from relative to absolute and vice versa
      • Edit folder's paths
      • Download remote files from the Internet to your local disks and change the link accordingly in your Gedcom file

    Statistics

    Here is an explanation of the indicators:

    • Total number of files is the total number of physical file references in your Gedcom file, either on your local disks or on the Internet. ReferencesFile references are written as FILE properties. Empty file names are included in this number. This number adds up local and remote files below. It also adds up to files attached to media entities and media properties.
    • Number of distinct files is the number of distinct physical files referenced by the genealogy. It can be lower than the number above. Indeed, the same physical file can be indicated in multiple FILE properties.

    A warning is displayed if some physical files are referenced more than once. It is inefficient because changing the file name on disk will require you to update the genealogy in more than one place. Click the "Show Files"all files" button to identify which are these "duplicate" files and consolidate them into the same media entity.

    • Local files: this is the number of files physically located on your disks (hard drive, USB keys, etc). It is made of relative path files and absolute path files.
      • relative path files start from the location of the Gedcom file. The path string does not start with "/" or "C:\" for instance.
      • absolute path files start from the root disk folder, usually "/" or "C:\".
    • Remote files: this is the number of physical files located somewhere on Internet web sites.
      • A Check existence button lets you check if all remote file really exist. If you click this button, Ancestris will scan all remote files and try to access them. This can take a long time depending on your Internet connection and the response time of the various web sites involved. If there are no remote files in your genealogy, this button will be disabled.
    • Files attached to media entities: the file references (FILE) are sub-properties of media entities, and can therefore be used as references multiple times throughout the Gedcom file.
    • Files attached to media properties: the file references (FILE) are sub-properties of media properties, and cannot be used anywhere else in the Gedcom file.

    The next information is the full path name of your Gedcom file, from which relative paths will be starting.

    Finally, the "Show all files" button opens the Media viewer with all the pictures.

    Edition

    XXX


    Usage

    XXX

    In the example above, one of the media file has not been found. It relates the red line above. This is a problem because Ancestris will not be able to display the corresponding media.

    If you don't have that red line, you're fine and may move on. Otherwise follow the instructions below.

    Where can the problem come from?

    Have you renamed your media folder or your media file?

    If your photo is in a /mygenealogy/photos/MyPicture.jpg file and your Individual entity references this photo in a FILE tag with value of /mygenealogy/photos/MyPicture.jpg, then the link is valid. Everything is fine.

    Now, if you rename your photos directory or just the media file, it may generate a broken link. For instance, if your photo file becomes /mygenealogy/media/MyPicture.jpg with media instead of photos, Ancestris will not find it because it still thinks it is in the "photos" folder, not "medias".

    This is enough to break the link. The Media Manager above will consequently display your photo as an unfound media.

    Have you moved your Gedcom file?

    Rather than renaming a media folder or a file, you may have just moved your Gedcom file.

    Relative position between your Gedcom and your media
    • If your media files are described in relative position with respect to your Gedcom file, the link is lost, because in this case you would have had to move your media files at the same time as your genealogy Gedcom file.
    • We recommend that you only specify your media in relative position of your Gedcom file location as this allows you to move your files without renaming the links.
    Absolute position between your Gedcom and your media
    • If your media files are described in absolute position, the link to the media is not lost because it is not using the position of the Gedcom file.
    • But the downside is that if you move your genealogy to a USB key, for example, your media will have remained on your hard drive and you will only be able to see your media if the USB key remains on your computer.
    • If it is to show your genealogy to one of your relatives, you will have to move the media to the key. But suddenly the links will be broken because the Gedcom file will think that they are still on your computer. You will have to rename them by one in Gedcom or else you use this Media Manager tool.

    Have your files been deleted?

    Another possible reason for a loss of link between your Gedcom file and your media files can also come from file deletions on the disk. It's more annoying because you have to already get hold of those files before continuing with the media manager or else removing the links in the Gedcom file.

    The Media manager does not remove the links, it just renames them.

    Resolution of problem

    If you are confident that your media files are somewhere on your computer, click the button at the bottom of the window similar to this one.

    en_file-properties-5-media-unfound-manage.png

    The following window appears.

    en_file-properties-5-media-manage.png

    This window first gives the name of the directory where the Gedcom file is located. Relative paths will start from there.

    Underneath, in the table, you will see the list of all the different paths found in the Gedcom file (all the FILE tags).

    In the example above, out of 10 media files, 1 media is not found in the "documents" folder, 1 media is found in this same folder,  and 8 media files are found in the "photos" folder. All media file links are specified in the Gedcom file in relative position from the Gedcom file location.

    On each row, you can click on the "..." button in the Search column to locate the corresponding media files.

    In the example above, the following window appears if you click on the first button with the unfound media file.

    en_file-properties-5-media-search.png

    This window will help you find the lost file.

    Ancestris will search for the file in all directories within the root directory indicated at the top. You can change it using the "Other..." button, or 'Original" to go back to the original root directory.

    The files to be found are listed in red in the left column. Otherwise, they will appear in green. In this example, the file to be found is "Herald_Tribune.jpg"

    The directories where the files exist are in the right column.

    • If no directory appear on the right, it means the file does not exist in any of the folders under the root directory indicated on top. If you change the root folder and still no directory appear, it means the file is either deleted or its name has changed. You would have to use your file explorer on your PC to identify its new name or else recreate the media file.
    • If one or more folder is listed on the right, select one of them. The Selection button should becomes available. Press it to set the found directory as the new root directory. You can also directly double click on the directory to be selected.

    For instance, below I changed the root directory  to myGenalogy and the photos folder appeared on the right. I pressed the "Selection" button and then, the file on the left becomes green again, and the root folder was updated to "Photos". 

    en_file-properties-5-media-found.png

    The file had apparently been moved from "Documents" to "Photos". If I prefer to move it back to Document, I can do it using my file explorer after cancelling the action here. Otherwise, just click OK.

    You will be back to this window below,where the counters have been updated, the unfound file is no longer unfound.

    en_file-properties-5-media-list-found.png

    When all the Found boxes are checked, you have found all the lost files.

    Click OK.

    The Media Manager will show this:

    en_file-properties-5-media-modifications-requested.png

    At this stage, no modification has been made to the Gedcom file.

    If you are OK to proceed, press OK. Otherwise, press the middle button "Cancel request".


    Customization

    XXX