Xfce Forum

Sub domains
 

You are not logged in.

#1 2020-07-14 11:43:24

sushi
Member
Registered: 2019-04-22
Posts: 81

Thunar not generating Canon .CR2 thumbnails.

Hi,

Arch fully up to date.

I have installed raw-thumbnailer & deleted ~/cache/thumbnails without success.

I have tried to modify /usr/share/thumbnailers/gdk-pixbuf-thumbnailer.thumbnailer by adding "image/x-xpixmap;image/x-canon-cr2" as mentioned here by Thomas_Do without success :

https://discuss.pixls.us/t/cr2-and-dng- … us/10350/2

Tried this too (adding /usr/share/thumbnailers/raw.thumbnailer) like told here, without success :

https://gist.github.com/h4cc/13450db3d4a7457f9b38

The .CRW & .DNG are created without problem.

thunar 1.8.15 (Xfce 4.14)

tumbler 0.2.8-2

raw-thumbnailer 0.2.1-5

Some help would be appreciate.

Thanks.

Offline

#2 2020-07-14 14:33:37

alcornoqui
Member
Registered: 2014-07-28
Posts: 832

Re: Thunar not generating Canon .CR2 thumbnails.

Do you have tumbler-plugins-extra installed?

Offline

#3 2020-07-14 19:51:41

sushi
Member
Registered: 2019-04-22
Posts: 81

Re: Thunar not generating Canon .CR2 thumbnails.

Doesn't exist in Arch, it's a Buntu thing.

Offline

#4 2020-07-14 21:29:38

eriefisher
Member
From: ON, Canada
Registered: 2008-10-25
Posts: 531

Re: Thunar not generating Canon .CR2 thumbnails.

Looks like you might need libopenraw.

https://www.archlinux.org/packages/extr … 4/tumbler/


Siduction
Debian Sid
Xfce 4.18

Offline

#5 2020-07-15 01:05:17

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

Re: Thunar not generating Canon .CR2 thumbnails.

On one of my Arch machines, if I kill and restart the tumbler process:

pkill tumblerd
/usr/lib/tumbler-1/tumblerd

...and then in another terminal window, kill and restart thunar:

thunar -q
thunar

...and then traverse to a folder with a CR2 file, thunar spits out:

ThunarThumbnailer: got 0 handle (Queue)
ThunarThumbnailer: got 0 handle (Error or Ready)
ThunarThumbnailer: got 0 handle (Error or Ready)
ThunarThumbnailer: got 0 handle (Finished)

Without the CR2 file present, there is no output.

Looks like a bug somewhere. Strangely enough, on another of my Arch machines it works - and I can't figure out why. I can't find any real thumbnailing differences between the two - but there must be something. Investigating.....

Edit: Haha, found it. CR2 files are supported by openraw (as eriefisher indicates above) but the default install limits raw thumbnails to files of size 2MB or smaller. To change this, copy the file /etc/xdg/tumbler/tumbler.rc to ~/.config/tumbler (create the directory if it doesn't exst) and edit that file to change the openraw MaxFileSize to 0:

# RAW image files using libopenraw
[RawThumbnailer]
Disabled=false
Priority=2
Locations=
MaxFileSize=0

...I've also set the priority higher. Restart tumbler and thunar or relogin for effect to take place.

Last edited by ToZ (2020-07-15 01:19:20)


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 2020-07-15 05:35:11

sushi
Member
Registered: 2019-04-22
Posts: 81

Re: Thunar not generating Canon .CR2 thumbnails.

@ eriefisher : Already installed.

@ ToZ : The :

ThunarThumbnailer: got 0 handle (Queue)
ThunarThumbnailer: got 0 handle (Error or Ready)
ThunarThumbnailer: got 0 handle (Error or Ready)
ThunarThumbnailer: got 0 handle (Finished)

Is a tumbler bug :

Here

I tried your solution and it works by creating the .CR2 thumbnails but now it doesn't create the .CRW anymore !? A kind of strange soup.

I'm investigating further...

Thanks.

Edit :

I have tried all the possible combinations (priority, MaxFileSize= and so on) without success. If the priority is set to 1 it's generate the .CRW but not the .CR2, if set to 2 it generate the .CR2 but not the .CRW, .DNG are always generated and the MaxFileSize=209715200 has no influence.

So, the point is the priority. As "workaround" I have set to 1 and then to 2 and generate the thumbnails so I have all of them.

Maybe it has to do with the "Customized Thumbnailer for folders" that I use like explained here :

https://docs.xfce.org/xfce/thunar/tumbler

Anyway I could generate all thumbnails by changing the priority but it's stiil a mystery why both are not generated in once.

Last edited by sushi (2020-07-15 07:53:16)

Offline

#7 2020-07-15 11:27:47

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

Re: Thunar not generating Canon .CR2 thumbnails.

@sushi, thanks. It's been a few weeks since I've updated my system from Xfce source. After a full update the messages are in fact gone.

Interestingly, I get all 3 thumbnails (cr2, crw, dng). Here is the full contents of my tunbler.rc file - I played around with it a while ago while I was trouble shooting some thumbnailing issues:

###
# [TypeNameOfPlugin]
# Disabled:    Set to true to avoid loading the plugin. By default all
#              plugins are loaded.
# Priority:    Priority of the plugin if more plugins support the same
#              uri-scheme / mime-type combination.
# Locations:   ;-separated path list the plugin will be used in. 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, environement variables, ~/ and ~username/
#              are allowed. Leave empty to allow all locations.
# MaxFileSize: 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.
#
# For more information see http://docs.xfce.org/xfce/thunar/tumbler
###

###
# Image Thumbnailers
###

# Jpeg thumbnailer (from exif data if possible)
[JPEGThumbnailer]
Disabled=false
Priority=3
Locations=
MaxFileSize=0

# Supports all type GdkPixbuf supports
[PixbufThumbnailer]
Disabled=false
Priority=1
Locations=
MaxFileSize=0

# RAW image files using libopenraw
[RawThumbnailer]
Disabled=false
Priority=2
Locations=
MaxFileSize=0

###
# Video Thumbnailers
###

# Download cover from omdbapi.com or themoviedb.org if an
# API key is given. This plugin is disabled because it
# sends your (private) movie names over the internet.
[CoverThumbnailer]
Disabled=true
Priority=3
Locations=~/movies
MaxFileSize=0
#APIKey=your-api-key-from-themoviedb.org

# ffmpegthumbnailer plugin
[FfmpegThumbnailer]
Disabled=false
Priority=2
Locations=
MaxFileSize=0

# GStreamer plugin
[GstThumbnailer]
Disabled=false
Priority=1
Locations=
MaxFileSize=0

###
# Other Thumbnailers
###

# FreeType thumbnailer
[FontThumbnailer]
Disabled=false
Priority=1
Locations=
MaxFileSize=0


# PDF/PS thumbnailer
[PopplerThumbnailer]
Disabled=false
Priority=1
Locations=
MaxFileSize=0

# Open document thumbnailer (ODF)
[OdfThumbnailer]
Disabled=false
Priority=1
Locations=
MaxFileSize=0

# thumnailers provided by .thumbnailer desktop files
[DesktopThumbnailer]
Disabled=false
Priority=1
Locations=
MaxFileSize=0

Let me try this on a second Arch install using only their repo Xfce versions.

Edit: With the default tumbler.rc file I see the same as you are seeing. When I use the tumbler.rc file from above, I can then get all thumbnails.

Last edited by ToZ (2020-07-15 11:36:46)


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

#8 2020-07-15 12:30:14

sushi
Member
Registered: 2019-04-22
Posts: 81

Re: Thunar not generating Canon .CR2 thumbnails.

ToZ  wrote:

After a full update the messages are in fact gone.

Strange, the bug hasn't been fixed and on my Arch (up to date) I still get these messages.

ToZ  wrote:

Edit: With the default tumbler.rc file I see the same as you are seeing. When I use the tumbler.rc file from above, I can then get all thumbnails.

I thing that it has to do with which tumbler plugin is used for the thumbnails > 1, 2 or 3 as specified in the doc :

Priority
    Numeric value to control the priority of the plugin. If 2 plugins can provide thumbnails for the same scheme + mime-type combination, the plugin with the highest priority is used first.

That's why I could get the .CR2 with Priority 2 (which plugin is in use?) and the .CRW with Priority 1 (which plugin in use?). I thing that one of them is not generated by libopenraw but from which one ? Have to investigate...

Which plugin is corresponding to 1, 2 or 3 it's not specified in the doc !

It would be interesting to try to change your tumbler.rc (which is working) step by step to see which one is the one that generate the .CRW and the one the .CR2, I will try myself and post the results.

Anyway, thanks ToZ !

Offline

#9 2020-07-15 16:44:48

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

Re: Thunar not generating Canon .CR2 thumbnails.

According to the raw thumbnailer, it should handle all 3:

static GList *
raw_thumbnailer_provider_get_thumbnailers (TumblerThumbnailerProvider *provider)
{
  RawThumbnailer     *thumbnailer;
  GList              *thumbnailers = NULL;
  static const gchar *uri_schemes[] = { "file", NULL };
  const gchar        *mime_types[] =
  {
    "image/x-adobe-dng",
    "image/x-canon-cr2",
    "image/x-canon-crw",
    "image/x-epson-erf",
    "image/x-nikon-nef",
    "image/x-nikon-nrw",
    "image/x-olympus-orf",
    "image/x-panasonic-raw",
    "image/x-panasonic-rw2",
    "image/x-pentax-pef",
    "image/x-sony-arw",
    "image/x-minolta-mrw",
    "image/x-fuji-raf",
    NULL
  };

But it obviously isn't.


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

#10 2020-07-15 19:12:55

sushi
Member
Registered: 2019-04-22
Posts: 81

Re: Thunar not generating Canon .CR2 thumbnails.

I have tried your modified tumbler.rc (#7) without success.

I don't use raw-thumbnailer plugin, I have tried with & without and it doesn't change anything. In tumbler.rc the RAWs are managed by libopenraw, the problem lies somewhere there...

Anyway, till further investigations I will do the "workaround" mentioned in #6 (I don't have that much .CR2 and I'm using .DNG now).

Thanks ToZ.

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: 589.54 KiB (Peak: 606.38 KiB) ]