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/08/25 20:35] – [Customized Thumbnailer for folders] alexxcons | xfce:thunar:tumbler [2020/04/09 23:52] – [Customized Thumbnailer for comic book archives] alexxcons | ||
---|---|---|---|
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. | 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. | ||
+ | |||
+ | ===== 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__ | ||
+ | * - Details missing. Please add, if known - | ||
+ | * Is that plugin still needed ? Pixbuf-thumbnailer as well supports jpeg. Is this plugin faster ? | ||
+ | * __Pixbuf-thumbnailer__ | ||
+ | * Supports all type GdkPixbuf supports (Gtk3.22: ani, bmp, GdkPixdata, gif, icns, ico, jpeg, png, pnm, qtif, svg, tga, tiff, wmf, xbm, xpm) | ||
+ | * __Raw-thumbnailer__ | ||
+ | | ||
+ | === Video Thumbnailers === | ||
+ | * __Cover-thumbnailer__ | ||
+ | * Downloads video covers from omdbapi.com or themoviedb.org. [[xfce: | ||
+ | * __ffmpeg-thumbnailer__ | ||
+ | * - Details missing. Please add, if known - | ||
+ | * Requires package: ?? | ||
+ | * __GStreamer-thumbnailer__ | ||
+ | * Provides video and audio cover (e.g. mp3, flac, etc) thumbnails. | ||
+ | * Requires package: gstreamer1.0-plugins-* (debian), gstreamer1-plugins-* (fedora), gst-plugins-* (Arch) | ||
+ | === Other Thumbnailers === | ||
+ | * __Font-thumbnailer__ | ||
+ | * - Details missing. Please add, if known - | ||
+ | * __Poppler-thumbnailer__ | ||
+ | * Thumbnailer for PS/PDF files | ||
+ | * Requires package: // | ||
+ | * __ODF-thumbnailer__ | ||
+ | * Provides thumbnails for different open document types, oasis.opendocument (presentation, | ||
+ | * Here the [[https:// | ||
+ | * __Customized thumbnailers__ | ||
+ | * All thumbnailers provided by .thumbnailer desktop files. [[xfce: | ||
+ | |||
+ | ---- | ||
===== Configuration ===== | ===== Configuration ===== | ||
Line 24: | Line 57: | ||
! Maximum size of the source file the plugin will still try to generate a plugin for. The size is in bytes, 0 disabled the check. | ! Maximum size of the source file the plugin will still try to generate a plugin for. The size is in bytes, 0 disabled the check. | ||
+ | ---- | ||
===== Cover Thumbnailer ===== | ===== Cover Thumbnailer ===== | ||
Line 42: | Line 76: | ||
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. | ||
+ | |||
+ | ---- | ||
===== Customized Thumbnailers ===== | ===== Customized Thumbnailers ===== | ||
- | As of version 0.2.0, the desktop thumbnailer functionality has been added back into tumbler. This functionality supports custom .thumbailer | + | As of version 0.2.0, the desktop thumbnailer functionality has been added back into tumbler. This functionality supports custom .thumbnailer |
==== Customized Thumbnailer for .dds files ==== | ==== Customized Thumbnailer for .dds files ==== | ||
Line 96: | Line 132: | ||
exit 1 | exit 1 | ||
</ | </ | ||
+ | |||
+ | Dont forget to give execution permission to the file! E.g: sudo chmod a+x / | ||
+ | |||
+ | 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: | ||
+ | |||
+ | <file txt / | ||
+ | [Thumbnailer Entry] | ||
+ | Version=1.0 | ||
+ | Encoding=UTF-8 | ||
+ | Type=X-Thumbnailer | ||
+ | Name=Text Thumbnailer | ||
+ | MimeType=text/ | ||
+ | Exec=/ | ||
+ | </ | ||
+ | |||
+ | And supporting script: | ||
+ | |||
+ | <file sh / | ||
+ | #!/bin/bash | ||
+ | iFile=$(<" | ||
+ | iChopped=" | ||
+ | unset iFile | ||
+ | echo " | ||
+ | unset iChopped | ||
+ | convert -size 210x290 -background white -pointsize 5 -border 10x10 -bordercolor "# | ||
+ | rm tmp.txt | ||
+ | </ | ||
+ | |||
+ | 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' | ||
+ | <file txt / | ||
+ | [Thumbnailer Entry] | ||
+ | TryExec=comicthumb | ||
+ | Exec=comicthumb %u %o %s | ||
+ | MimeType=application/ | ||
+ | application/ | ||
+ | </ | ||
+ | |||
+ | ==== Customized Thumbnailer for webp content ==== | ||
+ | Note: Make sure there is an image/webp mimetype defined in your system. | ||
+ | <file txt / | ||
+ | [Thumbnailer Entry] | ||
+ | Version=1.0 | ||
+ | Encoding=UTF-8 | ||
+ | Type=X-Thumbnailer | ||
+ | Name=webp Thumbnailer | ||
+ | MimeType=image/ | ||
+ | Exec=/ | ||
+ | </ | ||
+ | |||
+ | [[|Back To Top]] | ||
+ | ---- | ||
+ | [[: |