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:tumbler:available_plugins [2022/01/02 08:51] – [Customized Thumbnailer for animated webp content] gael | xfce:tumbler:available_plugins [2022/12/05 15:28] – [Customized Thumbnailers] gael | ||
---|---|---|---|
Line 12: | Line 12: | ||
* **[[# | * **[[# | ||
* **[[# | * **[[# | ||
+ | * **[[# | ||
---- | ---- | ||
Line 66: | Line 67: | ||
! Disable the plugin, the values '' | ! Disable the plugin, the values '' | ||
? Priority | ? Priority | ||
- | ! Numeric value to control the priority of the plugin. If 2 plugins can provide thumbnails for the same scheme + mime-type combination, | + | ! Numeric value to control the priority of the plugin. If two plugins can provide thumbnails for the same scheme + mime-type combination, |
? Locations | ? Locations | ||
! 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, '' | ! 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, '' | ||
Line 72: | Line 73: | ||
! 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, '' | ! 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, '' | ||
? MaxFileSize | ? MaxFileSize | ||
- | ! Maximum size of the source file the plugin will still try to generate a plugin | + | ! Maximum size of the source file the plugin will still try to generate a thumbnail |
+ | |||
+ | As of Tumbler 4.17.0 (first stable release 4.18.0), these settings extend to [[# | ||
[[|Back to Top]] | [[|Back to Top]] | ||
Line 99: | Line 102: | ||
===== Customized Thumbnailers ===== | ===== Customized Thumbnailers ===== | ||
- | As of version 0.2.0, the desktop thumbnailer functionality has been added back into tumbler. This functionality supports custom '' | + | As of version 0.2.0, the desktop thumbnailer functionality has been added back into tumbler. This functionality supports custom '' |
==== Customized Thumbnailer for .dds files ==== | ==== Customized Thumbnailer for .dds files ==== | ||
Line 111: | Line 115: | ||
Name=dds Thumbnailer | Name=dds Thumbnailer | ||
MimeType=image/ | MimeType=image/ | ||
- | Exec=/usr/bin/convert -thumbnail %s %i %o | + | Exec=convert -thumbnail %s %i %o |
</ | </ | ||
- 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:< | - 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:< | ||
Line 134: | Line 138: | ||
Name=Folder Thumbnailer | Name=Folder Thumbnailer | ||
MimeType=inode/ | MimeType=inode/ | ||
- | Exec=/usr/ | + | Exec=sh -c '~/ |
</ | </ | ||
Line 174: | Line 178: | ||
Name=Text Thumbnailer | Name=Text Thumbnailer | ||
MimeType=text/ | MimeType=text/ | ||
- | Exec=/usr/local/ | + | Exec=sh -c '~/ |
</ | </ | ||
Line 211: | Line 215: | ||
Name=webp Thumbnailer | Name=webp Thumbnailer | ||
MimeType=image/ | MimeType=image/ | ||
- | Exec=/usr/local/ | + | Exec=sh -c '~/ |
</ | </ | ||
And supporting script: | And supporting script: | ||
- | <file sh ~/bin/textthumb> | + | <file sh ~/bin/webpthumbs> |
#!/bin/bash | #!/bin/bash | ||
if tempfile=$(mktemp) && / | if tempfile=$(mktemp) && / | ||
/ | / | ||
- | rm " | ||
else | else | ||
/ | / | ||
+ | fi | ||
+ | |||
+ | [ -f " | ||
+ | </ | ||
+ | |||
+ | ==== Customized Thumbnailer for stl content ==== | ||
+ | <file txt ~/ | ||
+ | [Thumbnailer Entry] | ||
+ | Version=1.0 | ||
+ | Encoding=UTF-8 | ||
+ | Type=X-Thumbnailer | ||
+ | Name=STL Thumbnailer | ||
+ | MimeType=model/ | ||
+ | Exec=sh -c ' | ||
+ | </ | ||
+ | |||
+ | And supporting script: | ||
+ | |||
+ | <file sh ~/ | ||
+ | #!/bin/bash | ||
+ | |||
+ | if (($# < 3)); then | ||
+ | echo "$0: input_file_name output_file_name size" | ||
+ | exit 1 | ||
+ | fi | ||
+ | |||
+ | INPUT_FILE=$1 | ||
+ | OUTPUT_FILE=$2 | ||
+ | SIZE=$3 | ||
+ | |||
+ | if TEMP=$(mktemp --directory --tmpdir tumbler-stl-XXXXXX); | ||
+ | cp " | ||
+ | echo ' | ||
+ | openscad --imgsize " | ||
+ | convert -thumbnail " | ||
+ | rm -rf $TEMP | ||
fi | fi | ||
</ | </ |