Xfce Forum

Sub domains
 

You are not logged in.

#1 2023-11-06 22:06:59

kwip000
Member
Registered: 2023-11-06
Posts: 4

[Solved] Custom Thumbnailers not working

I found and checked https://forum.xfce.org/viewtopic.php?id=16785 already. It focuses on folder thumbnails, my problem is all custom thumbnails.

Using the documentation on https://docs.xfce.org/xfce/tumbler/available_plugins I made thumbnailers for .kra and .psd aswell as .webp, but non actually do anything.  i dont't see any errors but they aren't making thumbnails either.
I also downloaded (to confirm there were no mistakes made) and used the comic book archive thumbnailer which fails with

journalctl -xb | grep tumblerd
Failed to load the file "/home/greg/.local/share/thumbnailers/comicthumb.thumbnailer": Key file contains line “application/x-ext-cbr;application/x-ext-cbt;application/x-ext-cbz;application/vnd.comicbook-rar” which is not a key-value pair, group, or comment

I'm running version 4.18.7

Last edited by kwip000 (2023-11-09 17:42:10)

Offline

#2 2023-11-07 00:34:13

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [Solved] Custom Thumbnailers not working

Hello and welcome.

Which distro are you running? I'm assuming 4.18.7 refers to your thunar version. What does:

xfce4-about -V

...say?

For the comic book thumbnailer. Do you have a program installed to create thumbnails? Like mcomix? And can you also post back the exact contents of your thumbnailer file?

Edit: Just checked and in Arch, mcomix no longer builds the comicthumb executable. Installing xreader allowed thumbnailing of cbr files again without any addition .thumbnailer files (it includes a thumbnailer).

For the webp thumbnailer, do you have the appropriate mimetype defined in your system:

xdg-mime query default image/webp

Last edited by ToZ (2023-11-07 00:43:55)


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#3 2023-11-08 03:07:12

kwip000
Member
Registered: 2023-11-06
Posts: 4

Re: [Solved] Custom Thumbnailers not working

xfce4-about -V returned 4.18.4
previously i ran thunar --version to get the version.

It seems this was all the fault of blindly agreeing to an apt autoremove on Debian testing. Just had to reinstall my comic reader and webp-pixbuf-loader as they had both been removed.

Sorry about this, and thanks I wouldn't have realized the problem otherwise.

Last edited by kwip000 (2023-11-08 03:51:03)

Offline

#4 2023-11-08 04:10:19

kwip000
Member
Registered: 2023-11-06
Posts: 4

Re: [Solved] Custom Thumbnailers not working

Unfortunately I am still having this problem for KRA and PSD thumbnails, additionally I grabbed the STL example from the doc page, and it isn't working either.

I assume/hope this has something to do with mimeptypes as I ran

xdg-mime query default model/stl

and it returned something that's not really an STL viewer, though doing the same for x-krita and x-psd (vnd.adobe.photoshop) return correctly. Oh and running Nautilus generates KRA and  PSD thumbnails fine while STL's get an exclamation like a corrupt file which supports my theory... i hope.

And I got my KRA and PSD thumbnails from here https://moritzmolch.com/blog/1749.html

Last edited by kwip000 (2023-11-08 04:11:53)

Offline

#5 2023-11-08 18:17:58

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [Solved] Custom Thumbnailers not working

SLT Thumbnailer
This works for me. Do you have the "openscad" program installed (it seems to be required).

KRA Thumbnails
Doesn't work for me either using that thumbnailer. With debug enabled, I get:

tumblerd-DEBUG: 13:00:07.837: Handling request 3
tumblerd-DEBUG: 13:00:07.837: URIs | Mime types:
  file:///home/toz/Downloads/KR/E36P00.kra | application/x-krita
tumblerd-DEBUG: 13:00:07.837: Starting job 3
tumbler-desktop-thumbnailer-DEBUG: 13:00:07.837: 'Exec=sh -c "unzip -p \"%i\" preview.png > %o"': Handling URI 'file:///home/toz/Downloads/KR/E36P00.kra'
tumblerd-DEBUG: 13:00:07.862: Error signal for job 3: Code 8, message: (domain gdk-pixbuf-error-quark, code 3) Unrecognized image file format
tumblerd-DEBUG: 13:00:07.862: URIs:
  file:///home/toz/Downloads/KR/E36P00.kra
tumblerd-DEBUG: 13:00:07.862: Finishing job 3

However, installing https://gitlab.gnome.org/GNOME/gnome-kr … humbnailer works for me.

PSD Thumbnails
That linked one didn't work for either, but this does:

~/.local/share/thumbnailers/psd.thumbnailer:

[Thumbnailer Entry]
Exec=sh -c '~/bin/psd-thumbnailer "$@"' _ %i %o %s
MimeType=image/vnd.adobe.photoshop;

~/bin/psd-thumbnailer:

#!/bin/bash -e
convert "${1}[0]" -resize "$3>" "$2"

Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

#6 2023-11-08 21:25:12

kwip000
Member
Registered: 2023-11-06
Posts: 4

Re: [Solved] Custom Thumbnailers not working

Cool, thanks. That solves everything. Turns out the reason the STL thumbnailer wasn't working was that there was a blank line at the beginning of the script.


Sorry, but how do I edit the thread title? Stupid question I know

Last edited by kwip000 (2023-11-08 21:31:24)

Offline

#7 2023-11-08 23:16:30

ToZ
Administrator
From: Canada
Registered: 2011-06-02
Posts: 11,485

Re: [Solved] Custom Thumbnailers not working

kwip000 wrote:

Sorry, but how do I edit the thread title?

Edit your first post and prepend "[SOLVED]" to the subject line.


Please remember to mark your thread [SOLVED] to make it easier for others to find
--- How To Ask For Help | FAQ | Developer Wiki  |  Community | Contribute ---

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.014 seconds, 7 queries executed - Memory usage: 544.36 KiB (Peak: 545.2 KiB) ]