Xfce Wiki

Sub domains

Tumbler - Available Plugins

Available Plugins

Tumbler allows to load a number plugins to support different file formats. Most plugins are loaded by default, if the required libraries are provided.

Image Thumbnailers

  • JPEG-thumbnailer
    • Dedicated to JPEG image files.
  • Pixbuf-thumbnailer
    • Supports all type gdk-pixbuf supports. The list depends on the installed optional libraries, but you can obtain a minimal mime type list by
      sed -n 's/MimeType=//p' /usr/share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer
  • Raw-thumbnailer
    • RAW image files using libopenraw (Adobe DNG, Canon CRW CR2, Epson ERF, Fuji RAF, Minolta MRW, Nikon NEF and NRW, Olympus ORF, Panasonic RAW and RW2, Pentax PEF, Sony ARW).

Video Thumbnailers

  • Cover-thumbnailer
  • ffmpeg-thumbnailer
    • Main video plugin.
  • GStreamer-thumbnailer
    • Provides video and audio cover (e.g. mp3, flac, etc) thumbnails.

Document Thumbnailers

  • Font-thumbnailer
    • Provides thumbnails for font files.
  • Poppler-thumbnailer
    • Thumbnailer for PS/PDF files.
  • ODF-thumbnailer
    • Provides thumbnails for different open document types, oasis.opendocument (presentation, text,chart, image), sun.xml ( calc, writer, draw, impress. math) and some more.
  • GEpub-thumbnailer
    • Provides thumbnails for EPUB files.

External Thumbnailers

  • All thumbnailers provided by .thumbnailer desktop files. Also known as customized or desktop thumbnailers. See examples below.

Back to Top


Tumbler has since version 0.1.27 a configuration file to control the priority, locations and file sizes the plugin is used for: tumbler.rc.

To override the default configuration, located in one of the xdg directories on your system, you can copy the rc-file to your $XDG_CONFIG_HOME directory.

NB: $XDG_CONFIG_HOME defaults to ~/.config.

mkdir -p "${XDG_CONFIG_HOME:=~/.config}/tumbler"
cp /etc/xdg/tumbler/tumbler.rc "$XDG_CONFIG_HOME/tumbler/"

Each group in the configuration file is responsible for the settings of a particular thumbnailer plugin. The following keys can be used to adjust a plugin:

Disable the plugin, the values true and false are accepted.
Numeric value to control the priority of the plugin. If 2 plugins can provide thumbnails for the same scheme + mime-type combination, the plugin with the highest priority is used first.
A ;-separated path list the plugin will be used for. If the source file is not a child of one of the locations, the plugin won't be used and another plugin with a lower priority will be tried. Absolute paths, environment variables, ~/ and ~username/ are allowed. Leave empty to allow all locations.
A ;-separated path list the plugin will not be used for. If the source file is a child of one of the locations, the plugin won't be used and another plugin with a lower priority will be tried. Absolute paths, environment variables, ~/ and ~username/ are allowed. Leave empty to exclude nothing. Please note that paths in Excludes precede those in Locations.
Maximum size of the source file the plugin will still try to generate a thumbnail for. The size is in bytes, 0 disables the check.

Back to Top

Cover Thumbnailer

By default the cover thumbnailer is disabled. The reason is that it sends information (movie title extracted from the filename) to online services to retrieve a poster. This information is normally harmless, but it is private, so therefore it's not enabled by default.

In order to use the cover thumbnailer you need to copy the tumbler.rc file to your home directory as described above and set the Disabled key to false. It is also advisable to set the Locations path to the directory where you store your movies.


The movie thumbnailer supports two different movie APIs. By default, the The Open Movie Database API is used. You can also choose to use The Movie DB, but this site requires an API key which you have to request or uh… search.
The advantage of the latter is that their database has better support for internationalized movie names.

After creating the rc file, it is best to log off and on again to restart Thunar and Tumbler, because both applications cache the mime-type combinations.

Back to Top

Customized Thumbnailers

As of version 0.2.0, the desktop thumbnailer functionality has been added back into tumbler. This functionality supports custom .thumbnailer files placed in the XDG_DATA_DIRS/thumbnailers directories and the XDG_DATA_HOME/thumbnailers directory (which defaults to ~/.local/share/thumbnailers). The former is the place for system wide thumbnailers (normally in /usr/share/thumbnailers), while the latter is the preferred place for the user's customized thumbnailers (see below).

Customized Thumbnailer for .dds files

For example, to create a custom thumbnailer for .dds files, do the following:

  1. Create the appropriate .thumbnailer file:
    [Thumbnailer Entry]
    Name=dds Thumbnailer
    Exec=convert -thumbnail %s %i %o
  2. Ensure that a dds mimetype exists in your system (you can view mimetypes with the Xfce4 Mime Type Editor). If it does not exist, create the necessary mime file:
    <?xml version="1.0" encoding="UTF-8"?>
    <mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
        <mime-type type="image/x-dds">
            <comment>dds file</comment>
            <icon name="image"/>
            <glob pattern="*.dds"/>

    …and run

    update-mime-database ~/.local/share/mime

Customized Thumbnailer for folders

Another example are albums cover thumbnails for folders in a music collection. A custom thumbnailer can be added to e.g. add a file folder.jpg or cover.jpg into a folder and display its thumbnail instead of the default folder icon:

[Thumbnailer Entry]
Name=Folder Thumbnailer
Exec=sh -c '~/bin/folder-thumbnailer "$@"' _ %s %i %o %u

In order to support different names for the picture-file and to remove the thumbnail if not needed any more (display the default folder icon), a separate script is required:

for f in "${covers[@]}"; do
  [ -f "$f" ] && {
if [ -z "$cover" ] || ! convert -thumbnail "$1" "$cover" "$3"; then
  gdbus call --session --dest=org.freedesktop.thumbnails.Cache1 --object-path /org/freedesktop/thumbnails/Cache1 \
             --method org.freedesktop.thumbnails.Cache1.Delete "['$4']" >/dev/null

Don't forget to give execution permission to the file:

chmod u+x ~/bin/folder-thumbnailer

and to restart Thunar and Tumbler so that the new folder mime type is taken into account.

Note: ImageMagick is a required dependency for this script.

Customized Thumbnailer for text-based documents

A thumbnailer for text-based documents can be created using the convert function from the ImageMagick package with the following thumbnailer file:

[Thumbnailer Entry]
Name=Text Thumbnailer
Exec=sh -c '~/bin/textthumb "$@"' _ %s %i %o

And supporting script:

tempFile=$(mktemp) && {
  echo "${iFile:0:1600}" > "$tempFile"
  convert -size 210x290 -background white -pointsize 5 -border 10x10 -bordercolor "#CCC" caption:@"$tempFile" "$3"
  rm "$tempFile"

You can add additional mime types to the MimeType line of the thumbnailer file to support additional text-based document types.

Customized Thumbnailer for comic book archives

A thumbnailer for comic book archives (cbr, cbz, cbt, cb7) can be created using the comicthumb utility (search for it your distro's repositories). If not already present as /usr/share/thumbnailers/comicthumb.thumbnailer, create the following thumbnailer file:

[Thumbnailer Entry]
Exec=comicthumb %u %o %s

Customized Thumbnailer for webp content

Note: Make sure there is an image/webp mimetype defined in your system.

[Thumbnailer Entry]
Name=webp Thumbnailer
Exec=sh -c '~/bin/webpthumbs "$@"' _ %s %i %o

And supporting script:

if tempfile=$(mktemp) && /usr/bin/webpmux -get frame 1 "$2" -o "$tempfile"; then
  /usr/bin/convert -thumbnail "$1" "$tempfile" "$3" 
  /usr/bin/convert -thumbnail "$1" "$2" "$3"
[ -f "$tempfile" ] && rm "$tempfile"

Customized Thumbnailer for stl content

[Thumbnailer Entry]
Name=STL Thumbnailer
Exec=sh -c '~/bin/stl-thumbnailer "$@"' _ %i %o %s

And supporting script:

if (($# < 3)); then
  echo "$0: input_file_name output_file_name size"
  exit 1
if TEMP=$(mktemp --directory --tmpdir tumbler-stl-XXXXXX); then
  cp "$INPUT_FILE" "$TEMP/source.stl"
  echo 'import("source.stl", convexity=10);' > "$TEMP/thumbnail.scad"
  openscad --imgsize "500,500" -o "$TEMP/thumbnail.png" "$TEMP/thumbnail.scad" 2>/dev/null
  convert -thumbnail "$SIZE" "$TEMP/thumbnail.png" "$OUTPUT_FILE" &>/dev/null
  rm -rf $TEMP

Back To Top

Back to Main Tumbler documentation page

Back to Thunar documentation page