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 [2018/01/04 03:35] – [Desktop Thumbnailer Plugin] toz | xfce:thunar:tumbler [2018/08/25 15:37] – [Customized Thumbnailer for folders] alexxcons | ||
---|---|---|---|
Line 43: | Line 43: | ||
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. | 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. | ||
- | ===== Desktop Thumbnailer Plugin | + | ===== 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 /usr/shre/ | + | 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 /usr/share/ |
+ | |||
+ | ==== Customized Thumbnailer for .dds files ==== | ||
For example, to create a custom thumbnailer for .dds files, do the following: | For example, to create a custom thumbnailer for .dds files, do the following: | ||
Line 65: | Line 67: | ||
</ | </ | ||
</ | </ | ||
+ | |||
+ | ==== 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 / | ||
+ | #!/bin/bash | ||
+ | |||
+ | convert -thumbnail " | ||
+ | convert -thumbnail " | ||
+ | convert -thumbnail " | ||
+ | convert -thumbnail " | ||
+ | rm -f " | ||
+ | rm -f " | ||
+ | rm -f " | ||
+ | rm -f " | ||
+ | exit 0 | ||
+ | </ |