# 5.2 beta 2 thumbnails not showing

**URL:** <https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073>\
**Category:** Beta Testing\
**Created:** [August 26, 2023, 11:56am UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073 "2023-08-26T11:56:20Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [August 26, 2023, 11:56am UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/1 "2023-08-26T11:56:20Z")

</div>

Beta 2 on linux runs great, but in windows 11, thumbnails are not displaying. Every image has a document thumbnail. I wiped everything gramps off my windows machine and installed new. I then reloaded database using xml import. Still no images.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 26, 2023, 2:37pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/2 "2023-08-26T14:37:44Z")

</div>

Do you see any messages in the console?

Try putting a debug statement in the [image thumbnailer](https://github.com/gramps-project/gramps/blob/maintenance/gramps52/gramps/plugins/thumbnailer/imagethumb.py#L63) to check that it is being called.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 26, 2023, 3:42pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/3 "2023-08-26T15:42:16Z")

</div>

I just installed 5.2 beta 2 and noticed the same except for myself as the Home Person.

I am on Win10 so I used the Media Manager to switch “`/`” to :“`\`” in the media Path field.

I then ran the Thumbnail Generator.

All media seems to be showing their thumbnails. I did not check all 27K media records.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 26, 2023, 4:05pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/4 "2023-08-26T16:05:33Z")

</div>

FYI: I imported my last backup of my 5.1.5 database into 5.2. Not sure if that is part of the problem…

---

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [August 26, 2023, 4:27pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/5 "2023-08-26T16:27:11Z")

</div>

I did all that, recreate thumbnails didn’t do anything. I then copied over my database from linux and then fixed paths. Still just getting a document thumbnail. Double click brings up images on outside viewer so I know the links are ok.

---

<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:** [August 28, 2023, 3:41am UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/6 "2023-08-28T03:41:58Z")

</div>

> [@Nick-Hall](#):
>
> Do you see any messages in the console?
> 
> Try putting a debug statement in the [image thumbnailer](https://github.com/gramps-project/gramps/blob/maintenance/gramps52/gramps/plugins/thumbnailer/imagethumb.py#L63) to check that it is being called.

While trying to troubleshoot map tile caching, I found file path changes from the 5.1.x version. All seem to be causing problems. (In the Geography view, the map tile cache path can be found using the view Config.)

One was for thumbnails. The cache location is not using the `%appdata%` environment variable path, it is using subdirectories under `%localappdata%`

| Env Var | &nbsp; | path |
| --- | --- | --- |
| `%appdata%` | | `C:\Users\`_\<username\>_`\AppData\Roaming` |
| `%localappdata%` | | `C:\Users\`_\<username\>_`\AppData\Local` |

```python
C:\Users\<username>\AppData\Local\Microsoft\Windows\INetCache\gramps\thumb
C:\Users\<username>\AppData\Local\Microsoft\Windows\INetCache\gramps\thumb\large
C:\Users\<username>\AppData\Local\Microsoft\Windows\INetCache\gramps\thumb\normal
C:\Users\<username>\AppData\Local\Microsoft\Windows\INetCache\gramps\maps

```

And the install path for the [Gramps User Directory](https://gramps-project.org/wiki/index.php/Gramps_Glossary#user_directory)

```python
C:\Users\<username>\AppData\Local\enchant
C:\Users\<username>\AppData\Local\gramps
C:\Users\<username>\AppData\Local\gtk-3.0

```

And the default relative media path is weird too.

```python
{GRAMPS_RESOURCES}/doc/gramps/example/gramps

```

---

<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:** [August 28, 2023, 3:46am UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/7 "2023-08-28T03:46:30Z")

</div>

Also, the Windows Gramps beta2 GUI doesn’t seem to be able to read .png files anymore. Not thumbnails and not map tiles.

Double-clicking a `.png` media object still opens the ‘helper application’ associated with the `.png` extension and successfully loads the file.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 28, 2023, 10:44am UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/8 "2023-08-28T10:44:46Z")

</div>

Running GrampsAIO-5.2.0-beta2-1\_win64 on Win10

On my newest import, after running Media Manager to switch “`/`” to “`\`” all of my `.png` files show their thumbnails.

I have switched my default user files from the appdata location to…

`c:\users\public\genealogy\gramps`

so Gramps can be accessed by both user profiles on this box.

---

<div class="post-metadata">

**Author:** ![moorob](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/moorob/32/586_2.png) [@moorob](https://gramps.discourse.group/u/moorob)\
**Post date:** [August 28, 2023, 12:28pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/9 "2023-08-28T12:28:25Z")

</div>

I have a genealogy folder outside of my personal directory in windows with a folder called databases where my gramps databases are stored. This way everything is one place for mirror coping to another drive using freefilesync as my backup. Under 5.1.6 I had no problems with this arrangement. But I’ll check out what emyoulation said to look at.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 28, 2023, 1:21pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/10 "2023-08-28T13:21:15Z")

</div>

> [@emyoulation](#):
>
> And the default relative media path is weird too.
> 
> ```python
> {GRAMPS_RESOURCES}/doc/gramps/example/gramps
> 
> ```

This media path is imported from the example family tree.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 28, 2023, 1:46pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/11 "2023-08-28T13:46:13Z")

</div>

An update.

Not all `.jpg` images are showing thumbnails in the Gallery tab in the Media view but do show the thumbnail in the media’s edit window.

I added a new `.jpg` file to a record. This record is not showing a thumbnail anywhere. Editing the record from the person’s gallery the reference Preview pane does show the image.

 ![media preview](https://global.discourse-cdn.com/free1/uploads/gramps/original/2X/e/ecd64420504c20643be14ef8fda64244c8d00a28.png)

After running Thumbnail Generator this record’s thumbnails did not resolve.

I deleted all thumbnails from both `thumb/large` and `/normal`. Opening the media record from the person’s edit window as well the Media view did not reconstitute any thumbnails in the `thumb/` folders. Going to my record and doing the same to my media records also failed to generate thumbnails.

Will report back once the Thumbnail Generator does its thing.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 28, 2023, 2:19pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/12 "2023-08-28T14:19:13Z")

</div>

> [@DaveSch](#):
>
> Will report back once the Thumbnail Generator does its thing.

The Thumbnail Generator created absolutely NO thumbnails.

I removed the tool and installed the most recent generator version for 5.2, 1.0.27 and reran the tool again with no thumbnails generated.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 28, 2023, 2:49pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/13 "2023-08-28T14:49:28Z")

</div>

Try setting the environment variable `XDG_CACHE_HOME`. The thumbnails are stored in `${XDG_CACHE_HOME}/gramps/thumb/normal` and `${XDG_CACHE_HOME}/gramps/thumb/large`.

According to @emyoulation the default is “C:\Users\<username\>\AppData\Local\Microsoft\Windows\INetCache”. We obtain this from a call to [`GLib.get_user_cache_dir()`](https://docs.gtk.org/glib/func.get_user_cache_dir.html). The documentation states that it “Returns a base directory in which to store non-essential, cached data specific to particular user”.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 28, 2023, 5:05pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/14 "2023-08-28T17:05:31Z")

</div>

I have since the early release of 5.0 used

`GRAMPSHOME = c:\users\public\genealogy`

I set the environment variable.

`XDG_CACHE_HOME = c:\users\public\genealogy`

Rebooted system with no luck solving thumbnail creation.

Tried…

`XDG_CACHE_HOME = c:\users\public\genealogy\gramps`

Again, no luck.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 28, 2023, 5:42pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/15 "2023-08-28T17:42:25Z")

</div>

The file `gramps/plugins/thumbnailer/imagethumb.py` contains the thumbnailer. Try putting a couple of debug statements in it to see if it is being called.

The `is_supported()` method is called to see if a particular mime type is supported by the thumbnailer. If you add `print (mime_type)` you should see some files which start with “image”.

The `run()` method is called to actually run the thumbnailer. If you put a print statement in there you should see it output for every file.

If the output directory was read-only you should have seen error messages on the console.

---

<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:** [August 28, 2023, 6:21pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/16 "2023-08-28T18:21:21Z")

</div>

What kind of print statement for the console to show the full path & filename for both the media file and the path for thumbnails to the console?

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 28, 2023, 7:25pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/17 "2023-08-28T19:25:07Z")

</div>

You could try `print (mime_type, src_file, dest_file)`, but I’d just like to know if it is called.

---

<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:** [August 28, 2023, 7:39pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/18 "2023-08-28T19:39:48Z")

</div>

Thanks.

It would good to hear what the paths are for thumbnails and relative media paths under the 5.2 beta2 on Linux flavors, macOS and Windows.

There are shortfalls in the Windows fork where Gramps can’t resolve standard OS Environment variables. So this be a start on a bare bones debug gramplet to see if the paths are being converted between OSes.

---

<div class="post-metadata">

**Author:** ![DaveSch](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/davesch/32/40_2.png) [@DaveSch](https://gramps.discourse.group/u/DaveSch)\
**Post date:** [August 28, 2023, 8:24pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/19 "2023-08-28T20:24:17Z")

</div>

> [@Nick-Hall](#):
>
> I’d just like to know if it is called.

I can confidently say that `gramps/plugins/thumbnailer/imagethumb.py` is NOT being called.

In the `GrampsAIO-5.2.0-beta2-1_win64` install, that folder and file do NOT exist.

I checked the beta2 source code zip file and it is there.

---

<div class="post-metadata">

**Author:** ![Nick-Hall](https://yyz2.discourse-cdn.com/free1/user_avatar/gramps.discourse.group/nick-hall/32/95_2.png) [@Nick-Hall](https://gramps.discourse.group/u/Nick-Hall)\
**Post date:** [August 28, 2023, 8:27pm UTC](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073/20 "2023-08-28T20:27:49Z")

</div>

OK. I see the problem. The thumbnailers are missing from the `setup.py` script.

[Next page](https://gramps.discourse.group/t/5-2-beta-2-thumbnails-not-showing/4073.md?page=2)
