Gramps thumbnails

Hi,
I’m using Gramps 5.2.2. on Win11
Where can I find the folder with the thumbnails that Gramps created? I can’t find it anywhere.
As I have marked individual people in group photos, I would like to use these images for my homepage.

On Windows the default directories are: <appdata>\gramps\thumb\normal and <appdata>\gramps\thumb\large.

2 Likes

Call me blind!
But under "gramps\ " there i didn´t found the directory “\thumb”
Must i somehow generate the thumbnails?

The thumbnails are generated for you when required, but there is a Thumbnail Generator tool in the addons repository that can generate them for you in batch. This can be useful if your thumbnails are large and make Gramps feel sluggish when they are generated automatically.

1 Like

I have use this add on. But the directory are not there.

Look for recently modified files.

Alternatively use the Python Evaluation gramplet in Gramps and type:

from gramps.gen.const import THUMB_DIR
print (THUMB_DIR)

My thumbnails directory is in ~/.gramps/thumb which is the old Linux directory path prior to support for the XDG directory specification.

2 Likes

The Python Evaluation gramplet works. But it says the directory are under:
C\Users\xxxx\AppData\Local\Microsoft\Windows\INetCache\gramps\thumb

I found the directory to Microsoft\Windows. The directory after that is not there.
I search also the last modified files. There are nothing.

2 Likes

Looking through the const.py shows a couple more Gramps variables that might be pertinent.

In an experiment with Example.gramps on a fresh install of Gramps 5.2.1 on a restored to default Windows 10 Pro, the thumbnails were not showing. (Had red ‘x’ icon). Also, the thumb directories identified by the Python Eval script were not populated.

The media all had Relative paths. So until the relative Media path was correctly set, no thumbnails were created.

from gramps.gen import const

# Create a dictionary using a dictionary comprehension
ENV = {
    name: value for name, value in vars(const).items()
    if name.isupper() and not name.startswith('_') and isinstance(value, (str, int, float, bool))
}

# Print each item in the dictionary
for key, value in ENV.items():
    print(f"{key} :     {value}")

for a more refined script, see Troubleshooting Gramps paths and environmental variables

1 Like

Gramps obtains the operating system user cache directory and then appends gramps\thumb to it. I’m not sure why INetCache doesn’t exist.

Do you get any error messages on the console?

Are you sure that the directory is not just hidden by default?

1 Like

I have shown all hidden directories.
There is no error message


visible from the console.

The directory AppData\Local\Microsoft\Windows\INetCache\IE is used to store Internet Explorer cache files, so AppData\Local\Microsoft\Windows\INetCache\gramps\thumb seems like a reasonable directory for Gramps thumbnail files.

1 Like

the Script returns the following:

VERSION  :    AIO64-5.2.2-r1-f905d14     (NOT A DIRECTORY)
(NOT HIDDEN)    PROGRAM_NAME  :    Gramps
URL_HOMEPAGE  :    http://gramps-project.org/     (NOT A DIRECTORY)
URL_MAILINGLIST  :    http://sourceforge.net/mail/?group_id=25770     (NOT A DIRECTORY)
URL_BUGHOME  :    http://gramps-project.org/bugs     (NOT A DIRECTORY)
URL_BUGTRACKER  :    http://gramps-project.org/bugs/bug_report_page.php     (NOT A DIRECTORY)
URL_WIKISTRING  :    http://gramps-project.org/wiki/index.php?title=     (NOT A DIRECTORY)
URL_MANUAL_PAGE  :    Gramps_5.2_Wiki_Manual     (NOT A DIRECTORY)
URL_MANUAL_DATA  :    Gramps_5.2_Wiki_Manual_-_Entering_and_editing_data:_detailed     (NOT A DIRECTORY)
URL_MANUAL_SECT1  :    Gramps_5.2_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_1     (NOT A DIRECTORY)
URL_MANUAL_SECT2  :    Gramps_5.2_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_2     (NOT A DIRECTORY)
URL_MANUAL_SECT3  :    Gramps_5.2_Wiki_Manual_-_Entering_and_editing_data:_detailed_-_part_3     (NOT A DIRECTORY)
WIKI_FAQ  :    FAQ     (NOT A DIRECTORY)
WIKI_KEYBINDINGS  :    Gramps_5.2_Wiki_Manual_-_Keybindings     (NOT A DIRECTORY)
WIKI_EXTRAPLUGINS  :    5.2_Addons     (NOT A DIRECTORY)
WIKI_EXTRAPLUGINS_RAWDATA  :    Plugins5.2&action=raw     (NOT A DIRECTORY)
APP_FAMTREE  :    x-directory/normal     (NOT A DIRECTORY)
APP_GRAMPS  :    application/x-gramps     (NOT A DIRECTORY)
APP_GRAMPS_XML  :    application/x-gramps-xml     (NOT A DIRECTORY)
APP_GEDCOM  :    application/x-gedcom     (NOT A DIRECTORY)
APP_GRAMPS_PKG  :    application/x-gramps-package     (NOT A DIRECTORY)
APP_GENEWEB  :    application/x-geneweb     (NOT A DIRECTORY)
(NOT HIDDEN)    USER_HOME  :    C:\Users\stanw
HOME_DIR  :    C:\Users\stanw\AppData\Roaming\gramps     (NOT A DIRECTORY)
ORIG_HOME_DIR  :    C:\Users\stanw\AppData\Roaming\gramps     (NOT A DIRECTORY)
(NOT HIDDEN)    USER_DATA  :    C:\Users\stanw\AppData\Local\gramps
(NOT HIDDEN)    USER_CONFIG  :    C:\Users\stanw\AppData\Local\gramps
(NOT HIDDEN)    USER_CACHE  :    C:\Users\stanw\AppData\Local\Microsoft\Windows\INetCache\gramps
(NOT HIDDEN)    USER_PICTURES  :    C:\Users\stanw\Pictures
VERSION_DIR_NAME  :    gramps52     (NOT A DIRECTORY)
(NOT HIDDEN)    VERSION_DIR  :    C:\Users\stanw\AppData\Local\gramps\gramps52
(NOT HIDDEN)    USER_DATA_VERSION  :    C:\Users\stanw\AppData\Local\gramps\gramps52
CUSTOM_FILTERS  :    C:\Users\stanw\AppData\Local\gramps\gramps52\custom_filters.xml     (NOT A DIRECTORY)
REPORT_OPTIONS  :    C:\Users\stanw\AppData\Local\gramps\report_options.xml     (NOT A DIRECTORY)
TOOL_OPTIONS  :    C:\Users\stanw\AppData\Local\gramps\tool_options.xml     (NOT A DIRECTORY)
PLACE_FORMATS  :    C:\Users\stanw\AppData\Local\gramps\place_formats.xml     (NOT A DIRECTORY)
(NOT HIDDEN)    THUMB_DIR  :    C:\Users\stanw\AppData\Local\Microsoft\Windows\INetCache\gramps\thumb
(NOT HIDDEN)    THUMB_NORMAL  :    C:\Users\stanw\AppData\Local\Microsoft\Windows\INetCache\gramps\thumb\normal
(NOT HIDDEN)    THUMB_LARGE  :    C:\Users\stanw\AppData\Local\Microsoft\Windows\INetCache\gramps\thumb\large
(NOT HIDDEN)    USER_PLUGINS  :    C:\Users\stanw\AppData\Local\gramps\gramps52\plugins
(NOT HIDDEN)    USER_CSS  :    C:\Users\stanw\AppData\Local\gramps\css
LIB_PATH  :    C:\Users\stanw\AppData\Local\gramps\gramps52\plugins\lib     (NOT A DIRECTORY)
(NOT HIDDEN)    ROOT_DIR  :    C:\Program Files\GrampsAIO64-5.2.2\gramps
(NOT HIDDEN)    GLADE_DIR  :    C:\Program Files\GrampsAIO64-5.2.2\gramps\gui\glade
GLADE_FILE  :    C:\Program Files\GrampsAIO64-5.2.2\gramps\gui\glade\gramps.glade     (NOT A DIRECTORY)
PERSON_GLADE  :    C:\Program Files\GrampsAIO64-5.2.2\gramps\gui\glade\edit_person.glade     (NOT A DIRECTORY)
PLUGINS_GLADE  :    C:\Program Files\GrampsAIO64-5.2.2\gramps\gui\glade\plugins.glade     (NOT A DIRECTORY)
MERGE_GLADE  :    C:\Program Files\GrampsAIO64-5.2.2\gramps\gui\glade\mergedata.glade     (NOT A DIRECTORY)
RULE_GLADE  :    C:\Program Files\GrampsAIO64-5.2.2\gramps\gui\glade\rule.glade     (NOT A DIRECTORY)
(NOT HIDDEN)    PLUGINS_DIR  :    C:\Program Files\GrampsAIO64-5.2.2\gramps\plugins
(NOT HIDDEN)    DATA_DIR  :    C:\Program Files\GrampsAIO64-5.2.2\share\gramps
(NOT HIDDEN)    IMAGE_DIR  :    C:\Program Files\GrampsAIO64-5.2.2\share\gramps\images
TIP_DATA  :    C:\Program Files\GrampsAIO64-5.2.2\share\gramps\tips.xml     (NOT A DIRECTORY)
PAPERSIZE  :    C:\Program Files\GrampsAIO64-5.2.2\share\gramps\papersize.xml     (NOT A DIRECTORY)
ICON  :    C:\Program Files\GrampsAIO64-5.2.2\share\gramps\images\gramps.png     (NOT A DIRECTORY)
LOGO  :    C:\Program Files\GrampsAIO64-5.2.2\share\gramps\images\logo.png     (NOT A DIRECTORY)
SPLASH  :    C:\Program Files\GrampsAIO64-5.2.2\share\gramps\images\splash.jpg     (NOT A DIRECTORY)
LICENSE_FILE  :    C:\Program Files\GrampsAIO64-5.2.2\share\doc\gramps\COPYING     (NOT A DIRECTORY)
GTK_GETTEXT_DOMAIN  :    gtk30     (NOT A DIRECTORY)
COPYRIGHT_MSG  :    © 2001-2006 Donald N. Allingham
© 2007-2024 The Gramps Developers     (NOT A DIRECTORY)
COMMENTS  :    Gramps ist ein Genealogieprogramm, das sowohl intuitiv für Amateure als auch ein vollständiges Werkzeug für professionelle Genealogen ist.     (NOT A DIRECTORY)
AUTHORS_FILE  :    C:\Program Files\GrampsAIO64-5.2.2\share\gramps\authors.xml     (NOT A DIRECTORY)
XMLFILE  :    data.gramps     (NOT A DIRECTORY)
NO_SURNAME  :    (kein)     (NOT A DIRECTORY)
NO_GIVEN  :    (kein)     (NOT A DIRECTORY)
ARABIC_COMMA  :    ،     (NOT A DIRECTORY)
ARABIC_SEMICOLON  :    ؛     (NOT A DIRECTORY)
DOCGEN_OPTIONS  :    Docgen Options     (NOT A DIRECTORY)
COLON  :    :     (NOT A DIRECTORY)
SHORTOPTS  :    O:U:P:C:i:e:f:a:p:d:c:r:lLthuv?syqSD:     (NOT A DIRECTORY)

And it says that the directory exist??
(NOT HIDDEN) USER_CACHE : C:\Users\stanw\AppData\Local\Microsoft\Windows\INetCache\gramps

I don´t know …

1 Like

The following directory should include 2 subdirectories: normal and large that contain what thumbnails have been generated. (Adjusting the size of the thumbnail is discussed in another thread.)

1 Like

THX, but the directory after \windows are not there …

Are thumbnails showing up for your media in Gramps? Or do they all have icon that look like a red x in a box?

1 Like

What happens if you create the INetCache directory and then run Gramps again?

1 Like

Two of most likely possibilities that this folder wouldn’t exist are:

  • Third-party security software: Some security programs might interfere with or alter the location of browser cache folders.
  • Use of alternative browsers: If Internet Explorer and Microsoft Edge are not used, this folder might not be created or populated.
1 Like

From @Woody’s output, the HOME_DIR and ORIG_HOME_DIR are listed as (NOT A DIRECTORY). I take this to mean that the directory was NOT created.

The three THUMB_ directories and USER_CACHE are list as created just like USER_DATA and USER_CONFIG.


Personally, I do not like the idea that the thumbnails (and Maps ?) shunted out of the user’s directory.

1 Like

The XDG specification separates the data, configuration and cache directories. By default these are located under the user’s home directory. In Linux these directories are configurable using environment variables.

My Windows box reports “not a directory” too. On that machine it is because the constants are set to the old ‘Roaming’ path, not the actual new ‘Local’ folder.

Could there be a mistake in the routine that creates (or leverages the pre XDG path for upgrades) the Gramps User Directory in Windows? Where it decides the opposite (old) path when it should use the new path? The paths immediately below have a valid 'Local` in their breadcrumbs.

The LIB_PATH also claims that it is not a directory. But it IS showing Local. Maybe it wasn’t created?