# Relative media path problem

**URL:** <https://gramps.discourse.group/t/relative-media-path-problem/6016>\
**Category:** Help\
**Tags:** media-manager\
**Created:** [September 7, 2024, 8:55pm UTC](https://gramps.discourse.group/t/relative-media-path-problem/6016 "2024-09-07T20:55:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![twkyler](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@twkyler](https://gramps.discourse.group/u/twkyler)\
**Post date:** [September 7, 2024, 8:55pm UTC](https://gramps.discourse.group/t/relative-media-path-problem/6016/1 "2024-09-07T20:55:52Z")

</div>

See following image below.

I created a folder on an external drive to hold media, “gramps\_media”…which I intend to use as my base media folder and mapped that path in the prefs and added my first media to some galleries. Then, as a test, I moved that base folder to my desktop and disconnected the external drive…and then ‘remapped’ the base folder location via the prefs again…to see it this works the way I think it should.

After that, I ran the media manger to change “absolute \> relative” and indeed it shows me a summary list of the ‘expected changes’, which isn’t the most intuitive listing, never says “from X to Y”, just a 'list of affected, so I hit “apply” and there’s a bit of blinking going on making me think some code did something.

Then I close Gramps proper like, reopen it and checking the previously set base path in the prefs, it does point to the new desktop location… but all the gallery images with an X on them, when I try to "Open containing folder…I get the error message looking for the absolute path. opening the ‘shared info’ dialog still shows the absolute path.

Its my expectation that after running the media manager changing absolute to relative, that every path in the ‘shared info’ dialog of all the media should have changed, but its always absolute, no matter how many times I run the media manager to convert them.

Any ideas? Gramps 5.2.2 on OSX 14+ Still conducting some tests…

![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/7/78a63e907c3082269e003f9523d3388bcaa673c2.png)

---

<div class="post-metadata">

**Author:** ![twkyler](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@twkyler](https://gramps.discourse.group/u/twkyler)\
**Post date:** [September 7, 2024, 9:09pm UTC](https://gramps.discourse.group/t/relative-media-path-problem/6016/2 "2024-09-07T21:09:53Z")

</div>

A bit more info now. I re-mounted the external drive and the images are now found…even though the “base path” set in the prefs is still pointing to the desktop folder and not the external drive. This suggests the “base path” set in the prefs isn’t the “real path” that Gramps is looking at for media…so I am at a loss as to whats going on.

---

<div class="post-metadata">

**Author:** ![ennoborg](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/ennoborg/32/4659_2.png) [@ennoborg](https://gramps.discourse.group/u/ennoborg)\
**Post date:** [September 7, 2024, 9:17pm UTC](https://gramps.discourse.group/t/relative-media-path-problem/6016/3 "2024-09-07T21:17:41Z")

</div>

I don’t have a Mac here, but on Linux and Windows, Gramps does use the base path when files have relative paths. And relative paths are those that do not start with a / on Linux or OSX, or a drive letter followed by a colon and backslash on Windows.

For all relative paths, Gramps generates the full path by adding the file path to the end of the base path, with a / in between, or a backslash on Windows.

I also think that conversion of absolute to relative paths only works for those files that have a path that actually starts with the base path.

---

<div class="post-metadata">

**Author:** ![twkyler](https://avatars.discourse-cdn.com/v4/letter/t/22d042/32.png) [@twkyler](https://gramps.discourse.group/u/twkyler)\
**Post date:** [September 7, 2024, 10:29pm UTC](https://gramps.discourse.group/t/relative-media-path-problem/6016/4 "2024-09-07T22:29:17Z")

</div>

The solution turned out to be a bit easier, as is usually the case with PEBCAK bugs…this little guy has seemed to work wonders fixing my issue.

![image](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/8/8bd683ac820ca3e8e3cbd0625d73f06a67a9d85e.png)

---

<div class="post-metadata">

**Author:** ![anon44746896](https://avatars.discourse-cdn.com/v4/letter/a/e99b99/32.png) [@anon44746896](https://gramps.discourse.group/u/anon44746896)\
**Post date:** [September 8, 2024, 10:21pm UTC](https://gramps.discourse.group/t/relative-media-path-problem/6016/5 "2024-09-08T22:21:58Z")

</div>

Hello my first post here 😊

Yes the **Select a media object selector** checkbox for **Convert to a relative path** was not obvious , I have updated the user manual for the four locations it appears to hopefully make it easier for the next person!

Mentioned in following sections of user manual:

- [Family Tree’s Media path](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Settings#Family_Tree.27s_Media_path) section of preferences
- [**Gramps Media Manager**](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Tools#Media_Manager) for two of the tools (Convert paths from relative to absolute / Convert paths from absolute to relative)
- [Select a media object selector](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_2#Select_a_media_object_selector) section
- [Add data to the source](https://gramps-project.org/wiki/index.php/Start_with_Genealogy#Add_data_to_the_source) section of the **Start with Genealogy** page.

Idea:

> Maybe the **Convert to a relative path** checkbox should be moved or duplicated under the **Family Tree** tab of **Edit-\>Preferences** in the **[Family Tree’s Media path](https://gramps-project.org/wiki/index.php/Gramps_5.2_Wiki_Manual_-_Settings#Family_Tree.27s_Media_path)** section also and the behavior of the **Select a media object selector** checkbox can be either changed to do the reverse or just removed?

~~Seems I cannot post more than one link to the part of user manual I modified~~ Thanks for the account upgrade 🙂

---

<div class="post-metadata">

**Author:** ![emyoulation](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/emyoulation/32/67_2.png) [@emyoulation](https://gramps.discourse.group/u/emyoulation)\
**Post date:** [September 8, 2024, 10:32pm UTC](https://gramps.discourse.group/t/relative-media-path-problem/6016/6 "2024-09-08T22:32:33Z")

</div>

> [@anon44746896](#):
>
> Seems I cannot post more than one link to the part of user manual I modified ☹

Welcome!

That “1 link limit” was an automatic restriction for New Accounts in their first 30 days. Boosted your Account status. (Note that you can Edit your previous posting, just like the MediaWiki articles,)

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/free1/uploads/gramps/original/1X/2ac1e712b7adf612e31ca08a55419f4cf37c0158.png) [@system](https://gramps.discourse.group/u/system)\
**Post date:** [October 8, 2024, 10:32pm UTC](https://gramps.discourse.group/t/relative-media-path-problem/6016/7 "2024-10-08T22:32:48Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
