Open main menu

Gramps β

Changes

Addon:MediaMerge

1,031 bytes added, 23:01, 16 November 2025
m
version screenshot
{{Third-party pluginaddon}}[[File:MediaMerge-51.png|thumb|right|450px|Media Merge Tool's "Number of merges done" Results dialog and Before(top) and After(Bottom) screenshots of the [[Gramps_5.1_Wiki_Manual_-_Categories#Media_List_View|Media List View]]]]
The {{man label|Merge Media}} tool can search your database for media file entries that are pointing to the same actual file and when found, they can be merged together.
==What is it For?Usage==The Select {{man menu|Tools ->Family Tree Processing -> Merge Media}} tool searches your database for media file entries that are pointing to from the same actual file. This can occur with certain import types, and can occur if the user adds the same media more than once. When found, they are merged together. The addon compares all the media 'pathname' values, converting them internally to a common format for comparison. For Windows users, differences in capitalization on the path are ignored, as are differences in the path separators '''"\"''' vs. '''"/"'''. For all users paths that are relative (using {{man menu|Edit -> Preferences -> Base path for relative media paths}}) are also compared to absolute paths or paths relative to your home directory.
For all users, paths that contain The tool will start with an 'Undo history warning''"../"''' forms are also properly collapsed during the comparisonthat suggest that you back up your work.
All of The tool then scans your family tree and depending on the above allows result you are then presented with the addon to find variations that actually point :* {{man label|[[Addon:MediaMerge#No_modifications_made|No modifications made]]}} dialog - if no media needs to be merged.* {{man label|[[Addon:MediaMerge#Number_of_merges_done|Number of merges done]]}} dialog with the result of the same file.automatic merge
The addon will NOT find variations that include 'links'.
 
The addon will NOT find 'UNC' style paths that have been assigned to drive letters (Windows users). For example, if '''"\\MyPC\d"''' is assigned to the drive letter '''"D:"''', and files are entered each way, they will not be matched and merged.
 
When merges are done, the media with the shortest pathname is kept.
If pathnames have equal length, then the one with the lowest 'ID' is kept.
 
{{-}}
===Number of merges done===
If any duplicate media is found and merged you will see the {{man label|Number of merges done}} dialog with the resulting number that was merged.
===No modifications made===
If no duplicate media is found or remain to be merged you will see the {{man label|No modifications made}} dialog with the result that "no media media items merged".
 
==What is it For?==
The {{man label|Merge Media}} tool searches your database for media file entries that are pointing to the same actual file. This can occur with certain import types, and can occur if the user adds the same media more than once. When found, they are merged together.
 
The {{man label|Merge Media}} tool:
* Compares all the media 'pathname' values, converting them internally to a common format for comparison.
* For Windows users, differences in capitalization on the path are ignored, as are differences in the path separators '''"<code>\</code>"''' vs. '''"<code>/</code>"'''.
* For all users paths that are relative (using {{man menu|Edit -> Preferences -> Base path for relative media paths}}) are also compared to absolute paths or paths relative to your home directory.
* For all users, paths that contain '''"<code>../</code>"''' forms are also properly collapsed during the comparison.
* All of the above allows the addon to find variations that actually point to the same file.
* The addon will NOT find variations that include 'links'.
* The addon will NOT find 'UNC' style paths that have been assigned to drive letters (Windows users). For example, if '''"<code>\\MyPC\d</code>"''' is assigned to the drive letter '''"<code>D:</code>"''', and files are entered each way, they will not be matched and merged.
* When merges are done, the media with the shortest pathname is kept.
** If pathnames have equal length, then the one with the lowest 'ID' is kept.
== See also==
** {{man label|[[Gramps_{{man version}}_Wiki_Manual_-_Tools#Add_images_not_included_in_database|Add images not included in database]]}}
* The Third-party Addon {{man label|[[Addon:Media Verify Tool|Media Verify Tool]]}} is used verify a one-to-one relationship between media objects and files in the media directory.  * [[Media Management]]
{{man warn|Looking for the help page for the Media {{man label|Browser}} Gramplet?|See the following page: https://gramps-project.org/wiki/index.php/Addon:MediaBrowserGramplet }}
[[Category:Addons]]
[[Category:Plugins]]
[[Category:Tools]]
[[Category:Developers/General]]
[[Category:Media]]
15,091
edits