You are not logged in.

#1 2021-05-27 10:22:07

ashic
Member
Registered: 2020-01-22
Posts: 68

[Solved] New install, no raw thumbnailing

I've got the following installed:

raw-thumbnailer
tumbler
thumbler-extra-thumbnailers
ufraw-thumbnailer

I've got Sony ARW files, and thunar isn't generating thumbnails for these at all. Running thunar on the command line, I don't see any messages when I enter a folder with ARW files in them. I've ran

nufraw-batch ./*

in a folder with ARW files and it generates thumbnail images in the same directory just fine. However, when I go into the same folder in thunar, nothing happens. There's nothing generated in ~/.cache/thumbnails/ . (If I enter a folder with jpeg files, then thumbnails DO get generated in ~/.cache/thumbnails).

I have these all running smoothly on another arch machine, but can't figure out what's missing here, or where I can start debugging. Any help would be appreciated.

Last edited by ashic (2021-05-28 07:18:06)

Offline

#2 2021-05-27 11:02:53

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

In the journal, I see:

org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer /usr/bin/convert -thumbnail %s %i %o
org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer /usr/bin/gnome-mobi-thumbnailer -s %s %u %o
org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer nufraw-batch --silent --size %s --out-type=png --noexif --output=%o --overwrite --embedded-image %i
org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer /usr/bin/convert -thumbnail %s %i %o
org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer gnome-thumbnail-font --size %s %u %o
org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer evince-thumbnailer -s %s %u %o
org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer heif-thumbnailer -s %s %i %o
org.freedesktop.thumbnails.Thumbnailer1[108489]: Registered thumbnailer /usr/bin/gdk-pixbuf-thumbnailer -s %s %u %o
dbus-daemon[1880]: [session uid=1000 pid=1880] Successfully activated service 'org.freedesktop.thumbnails.Thumbnailer1'

I see that nufraw-batch is in there. I also have thunar preferences for thumbnails set to "always". I don't see anything in the journal if I open a folder in thunar that has ARW files.

Offline

#3 2021-05-27 13:39:13

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: [Solved] New install, no raw thumbnailing

You can convert these images to png or jpg format with ffmulticonverter


Arch Linux Xfce - 64Bit Linux User #621110

Offline

#4 2021-05-27 13:43:42

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

robson75 wrote:

You can convert these images to png or jpg format with ffmulticonverter

I'm not looking to convert the images. I just want thumbnails showing, as they do for the same files on another arch machine. As mentioned, nufraw-batch from the command line is creating expected thumbnail files. However, when I'm browsing directories with thunar / dolphin / nautilus, the thumbnails for Sony ARW files are not being generated.

Offline

#5 2021-05-27 14:01:09

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: [Solved] New install, no raw thumbnailing

And do you have the libheif package installed?


Arch Linux Xfce - 64Bit Linux User #621110

Offline

#6 2021-05-27 14:08:24

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

robson75 wrote:

And do you have the libheif package installed?

Yes. (Although, I'm not looking at heif files... just ARW raw files at the moment).

Offline

#7 2021-05-27 15:27:12

robson75
Member
From: Poland
Registered: 2020-06-28
Posts: 144

Re: [Solved] New install, no raw thumbnailing

If you say you have thumbnails displayed on another Arch machine, you should compare the packages you have installed on both systems using

pacman -Qqe > pkglist.txt

and then compare those files using diffuse.


Arch Linux Xfce - 64Bit Linux User #621110

Offline

#8 2021-05-27 15:36:04

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

robson75 wrote:

If you say you have thumbnails displayed on another Arch machine, you should compare the packages you have installed on both systems using

pacman -Qqe > pkglist.txt

and then compare those files using diffuse.

I've checked the relevant packages.... they're pretty much the same.

I just installed Nemo and set the max file size for thumbnails to 100MB (the ARW files are between 25 and 65MB). Nemo generated thumbnails instantly. I couldn't find an equivalent file size limit setting for Thunar or Dolphin. Is there a place where I can set this? Thunar's looking in the correct place for thumbnails (~/.config/thumbnails) as that's where Nemo is putting the thumbnails. It's just that Thunar is not triggering the generation.

Offline

#9 2021-05-27 16:37:08

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

Another observation.... Dolphin is sending thumbnails to ~/.cache/thumnails/fail/gnome-thumbnail-generator. Thunar isn't generating them at all. Nemo is generating them correctly. Thunar is able to show thumbnails generated with Nemo.

Offline

#10 2021-05-28 00:13:14

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

Update:
installing kdegraphics-thumbnailers has resolved the thumbnail generation in Dolphin.

So, Dolphin and Nemo both are generating thumbnails. Thunar is not. If Dolphin or Nemo has generated thumbnails, those are then visible in Thunar.

Sort of stuck on what to try next. Would prefer not to have to leave Thunar.

Offline

#11 2021-05-28 01:28:06

toz
Member
Registered: 2011-10-28
Posts: 513

Re: [Solved] New install, no raw thumbnailing

Perhaps a bug with tumbler (thunar's thumbnailing component) or maybe libopenraw or maybe gdk-pixbuf. Using a sample ARW file from the internet, I can query:

$ xdg-mime query filetype sony_a7_iii_03.arw 
image/x-sony-arw

...but:

$ file sony_a7_iii_03.arw 
sony_a7_iii_03.arw: TIFF image data, little-endian, direntries=19, compression=JPEG (old), description=                               , manufacturer=SONY, model=ILCE-7M3, orientation=upper-left, xresolution=290, yresolution=298, resolutionunit=2, software=ILCE-7M3 v1.00, datetime=2018:02:26 15:02:27

Running a dbus-monitor on the thumbnailing service, I get:

$ dbus-monitor "type='signal',interface='org.freedesktop.thumbnails.Thumbnailer1'"
signal time=1622163674.761844 sender=:1.345 -> destination=:1.332 serial=45 path=/org/freedesktop/thumbnails/Thumbnailer1; interface=org.freedesktop.thumbnails.Thumbnailer1; member=Error
   uint32 3
   array [
      string "file:///home/toz/Downloads/thumbs/sony_a7_iii_03.arw"
   ]
   int32 5
   string "Failed to load TIFF image"

Tested using just the built-in tumbler capabilities. Looks like there is a bug there somewhere.

So, installed ufraw-thumbnailer. As "desktop thumbnailers" have a lower priority in tumbler, it will never bypass the default pixbuf or openraw libraries without some config changes. So basically:

  1. Copy /etc/xdg/tumbler/tumbler.rc to ~/.config/tumbler/tumbler.rc

  2. For the "[Desktop Thumbnailer]" entry, change the priority to 3 (higher than the built-in gdk-pixbuf thumbnailer) and change MaxFileSize to 0 (meaning there is not maximim size).

  3. Kill thunar and the tumbler process and try again (or logout and back in again)

And that got it working.

Offline

#12 2021-05-28 07:17:42

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

@toz That worked perfectly. I'd tried that, but the part I was missing was setting the priority in ~/.config/tumbler/tumbler.rc . Setting either RawThumbnailer or DesktopThumbnailer to priority 3 immediately worked. I think Desktop Thumbnailer with ufraw-thumbnailer seems to have a slight performance gain, though I could be wrong. The Ryzen 5950 generates thumbnails at such a speed that it's very hard to tell the difference even with a folder full of 64mb raw files.

As an added bonus, I learnt how to use dbus-monitor from your post!

Thanks!

Offline

#13 2021-05-28 07:59:39

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

@toz Quick follow up question...

Now Thunar's generating thumbnails for raw files in folders. However, if a folder has images, it's not generating (or displaying) a folder preview thumbnail with images, etc. Dolphin is doing this perfectly, and even if Dolphin's generated a thumbnail for a folder preview, Thunar is not displaying it. If a folder has 2 images, if I open the folder in either Thunar or Dolphin, two thumbnails are created in ~/.cache/thumbnails/large/ and the thumbnails show in both Thunar and Dolphin. However, if I clear the cache and open the parent folder, in the case of Dolphin, two thumbnails are created in ~/.cache/thumbnails/normal/ and the folder icon shows two small previews of the folder contents. In the case of Thunar, this does not happen. Furthermore, if Dolphin generated the preview, it's not even shown in Thunar. Is there some setting I'm missing for folder previews?

I just checked, and the Thunar behaviour also manifests in Nautilus and Nemo. Only Dolphin is showing previews of folders at this point.

Offline

#14 2021-05-28 08:41:43

positronik
Member
Registered: 2016-02-08
Posts: 95

Re: [Solved] New install, no raw thumbnailing

Are you sure Thunar, Nautilus and Nemo expected behavior is to show thumbails for folder containing images?

Offline

#15 2021-05-28 08:55:20

ashic
Member
Registered: 2020-01-22
Posts: 68

Re: [Solved] New install, no raw thumbnailing

positronik wrote:

Are you sure Thunar, Nautilus and Nemo expected behavior is to show thumbails for folder containing images?

Good point. I just checked and they don't seem to show previews on my other machines either. I was using Dolphin saw thought folder previews were standard.

Offline

#16 2021-05-28 17:12:33

toz
Member
Registered: 2011-10-28
Posts: 513

Re: [Solved] New install, no raw thumbnailing

Thunar (tumbler) is capable of folder thumbnails, but it is not the same as what dolphin does.

Offline

Board footer

Powered by FluxBB