Difference between revisions of "Addon:Media Verify Tool"
(→Usage) |
(→Usage) |
||
Line 78: | Line 78: | ||
=== Fix === | === Fix === | ||
− | Clicking the {{man button|Fix}} button will fix the paths in the media objects to match the new paths listed in the {{man label|Moved/Renamed Files}} section. | + | Clicking the {{man button|Fix}} button will fix the paths in the media objects to match the new paths listed in the listed in the {{man button|Verify}} - {{man label|[[Media_Verify_Tool#Moved.2FRenamed_Files|Moved/Renamed Files]]}} section tab. |
== Issues == | == Issues == |
Revision as of 22:27, 19 May 2020
![]() |
This is a Third-party Addon. Please use carefully on data that is backed up, and help make it better by reporting any comments or problems to the author, or issues to the bug tracker |
The Media Verify Tool is used verify a one-to-one relationship between media objects and files in the media directory. The main purpose of the tool is to locate files that have been moved and fix the paths.
Contents
Purpose
This tool uses MD5 checksums to verify the integrity of files under the media directory. It also allows users to use a file manager of their choice to manage media objects.
Preparation
This tool assumes that you store all your media files under a media directory. You can specify this directory by setting the Base path for relative media paths in the General tab, under the Edit->Preferences menu option.
Usage
You can access the tool from the Tools > Utilities > Media Verify... menu.
The Media Verify Tool dialog is display with the following choices:
- The Close button when selected will exit the tool.
- The Generate button will generate MD5 checksums for all media objects.
- The Verify button will perform various checks against your media objects in Gramps and media files under your media directory.
- The Export button when selected will export the report as a text file.
- The Fix button will fix the paths in the media objects to match the new paths listed in the Verify - Moved/Renamed Files section tab.
Generate
Clicking the Generate button will generate MD5 checksums for all media objects. You should run this after you have added or changed any media files. Media objects without MD5 checksums will be listed as part of the media verification.
Verify
Clicking the Verify button will perform various checks against your media objects in Gramps and media files under your media directory.
Moved/Renamed Files
Files that have moved or renamed are listed in the Moved/Renamed Files tab. Where there are multiple files with the same checksum under the media directory, the first one listed with the same name as the original will be displayed.
Double clicking on a row will edit the associated media object.
Missing Files
Media objects are listed in the Missing Files tab, when there is no file found with a matching checksum.
Double clicking on a row will edit the associated media object.
Duplicate Files
Files with duplicate checksums are listed in the Duplicate Files tab.
Double clicking on a row will display the image in the default viewer.
Extra Files Files
Files that are under the media directory, but not yet in Gramps are listed in the Extra Files tab.
Double clicking on a row will display the image in the default viewer.
No MD5 Generated
Media objects with no checksum are listed in the No MD5 Generated tab.
Double clicking on a row will edit the associated media object.
Export
Clicking the Export button will export the report as a text file.
Fix
Clicking the Fix button will fix the paths in the media objects to match the new paths listed in the listed in the Verify - Moved/Renamed Files section tab.
Issues
Possible future enhancements
This tool could be enhanced to perform other tasks, such as:
- Merging media objects with duplicate files.
- Updating the checksum for modified files.
- Removing unused duplicate files.
- Creating media objects for unused files.
- Add a help button pointing here