Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
xfce:thunar:tumbler [2013/01/12 12:06] – nick | xfce:thunar:tumbler [2019/04/23 13:00] – [Customized Thumbnailer for folders] toz | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Tumbler ====== | ====== Tumbler ====== | ||
+ | The Tumbler package contains a D-Bus thumbnailing service based on the thumbnail management D-Bus specification. This is useful for generating thumbnail images of files. | ||
===== Configuration ===== | ===== Configuration ===== | ||
- | Tumbler has since version 0.1.27 a configuration file to control the priority | + | Tumbler has since version 0.1.27 a configuration file to control the priority, |
To override the default configuration, | To override the default configuration, | ||
+ | |||
+ | NB: '' | ||
mkdir -p $XDG_CONFIG_HOME/ | mkdir -p $XDG_CONFIG_HOME/ | ||
cp / | cp / | ||
- | Each group in the plugin | + | Each group in the configuration file is responsible for the settings of a particular |
? Disabled | ? Disabled | ||
Line 26: | Line 29: | ||
By the 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. | By the 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 | + | In order to use the cover thumbnailer you need to copy the tumbler.rc file to your home directory |
[CoverThumbnailer] | [CoverThumbnailer] | ||
Line 35: | Line 38: | ||
# | # | ||
- | The movie thumbnailer supports | + | The movie thumbnailer supports |
- | Advantage | + | The advantage |
+ | |||
+ | 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. | ||
+ | |||
+ | ===== Customized Thumbnailers ===== | ||
+ | As of version 0.2.0, the desktop thumbnailer functionality has been added back into tumbler. This functionality supports custom .thumbailer files placed in the / | ||
+ | |||
+ | ==== Customized Thumbnailer for .dds files ==== | ||
+ | |||
+ | For example, to create a custom thumbnailer for .dds files, do the following: | ||
+ | - Create the appropriate .thumbnailer file:< | ||
+ | [Thumbnailer Entry] | ||
+ | Version=1.0 | ||
+ | Encoding=UTF-8 | ||
+ | Type=X-Thumbnailer | ||
+ | Name=dds Thumbnailer | ||
+ | MimeType=image/ | ||
+ | Exec=/ | ||
+ | </ | ||
+ | - 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:< | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | <icon name=" | ||
+ | < | ||
+ | <glob pattern=" | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | ==== Customized Thumbnailer for folders ==== | ||
+ | |||
+ | Another example are albums cover thumbnails for folders in a music collection. Starting with thunar 1.8.2 a custom thumbnailer can be added to e.g. add a file '' | ||
+ | <file txt / | ||
+ | [Thumbnailer Entry] | ||
+ | Version=1.0 | ||
+ | Encoding=UTF-8 | ||
+ | Type=X-Thumbnailer | ||
+ | Name=Folder Thumbnailer | ||
+ | MimeType=inode/ | ||
+ | Exec=/ | ||
+ | </ | ||
+ | |||
+ | 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: | ||
+ | |||
+ | <file sh / | ||
+ | # | ||
+ | |||
+ | convert -thumbnail " | ||
+ | convert -thumbnail " | ||
+ | convert -thumbnail " | ||
+ | convert -thumbnail " | ||
+ | rm -f " | ||
+ | rm -f " | ||
+ | rm -f " | ||
+ | rm -f " | ||
+ | exit 1 | ||
+ | </ | ||
- | After creating the rc file, it is best if you log-off and on again to restart Thunar and Tumbler, because both applications cache the mime-type combinations. | + | Note: imagemagick |