I write this as it's my first "serious" problem with Mint since Mint 13 or 14, and this time I can't resolve it. Really, all these years just Install&work, very sometimes a little tweak. So I never took your precious time for smaller problems that I could live with.
To the point. The same problem touches 19.3 Xfce and newest 20 Xfce, both with Thunar and Nemo file managers. I switched from taking photos in JPG format to RAW, particularly Panasonic RW2 files. I just need one simple feature in file manager - RAW thumbnails.
As it's said in many places "in the Net", I created /usr/share/thumbnailers/ufraw.thumbnailer/i] file containing
Code: Select all
[Thumbnailer Entry]
Exec=/usr/bin/ufraw-batch --embedded-image --out-type=png --size=%s %u --overwrite --silent --output=%o
MimeType=image/x-3fr;image/x-adobe-dng;image/x-arw;image/x-bay;image/x-canon-cr2;image/x-canon-crw;image/x-cap;image/x-cr2;image/x-crw;image/x-dcr;image/x-dcraw;image/x-dcs;image/x-dng;image/x-drf;image/x-eip;image/x-erf;image/x-fff;image/x-fuji-raf;image/x-iiq;image/x-k25;image/x-kdc;image/x-mef;image/x-minolta-mrw;image/x-mos;image/x-mrw;image/x-nef;image/x-nikon-nef;image/x-nrw;image/x-olympus-orf;image/x-orf;image/x-panasonic-raw;image/x-pef;image/x-pentax-pef;image/x-ptx;image/x-pxn;image/x-r3d;image/x-raf;image/x-raw;image/x-rw2;image/x-rwl;image/x-rwz;image/x-sigma-x3f;image/x-sony-arw;image/x-sony-sr2;image/x-sony-srf;image/x-sr2;image/x-srf;image/x-x3f;image/x-panasonic-raw2;
nemo -q
, deleted all thumbnail caches. Still works for all files, excluding RW2. To be precise - it worked in 19.3 but only 2, maybe 3 days. Then stopped showing RW2 thumbnails, still showing CR2 and others. In 20 Xfce didn't even show one thumbnail for RW2. Althrough ufraw is no more available in apt-get in Mint 20, ufraw-thumbnailer works
I tried second method - DCRAW
manually in terminal,
dcraw -e -c myphoto.RW2 > myphoto.jpg
gives a JPG file containig 1920x1440 image. For CR2 it gives full sensor resolution JPG. So it works - extracts internal JPG file from RAW. Ok, let's make thumbnailer.I deleted [/usr/share/thumbnailers/ufraw.thumbnailer] and made /usr/share/thumbnailers/dcraw.thumbnailer containing:
Code: Select all
[Thumbnailer Entry]
Exec=/usr/bin/dcraw -e -c
MimeType=image/x-3fr;<all-previous-list>;image/x-panasonic-raw2;image/x-panasonic-rw2;
So I tried to search what is wrong in system. What I know is:
1. file manager (both Nemo and Thunar) recognizes RAW files from other cameras and choses right thumbnailer script to process them
2. file manager (both Nemo and Thunar) recognizes MIME type of my RW2 (reports image/x-panasonic-rw2 type)
3. both programs used as thumbnailers (ufraw, dcraw) can process all RAW types including my RW2 manually from terminal, but excluding RW2 when invoked by file manager
4. mime type for files are recognized by some else method than /etc/mime.types - this file doesn't contain image/x-panasonic-rw2 or image/x-panasonic-raw2 (and most others, still recognized and reported by FM)
5. adding ~/mime.types file containing new definitions doesn't change anything
6. there exist many xyz.xml files under /usr/share/mime/image/ directory, all of them containing line <!--Created automatically by update-mime-database. DO NOT EDIT!--> plus sophisticated info about every filetype (name in 50 languages, sort of content info)
So - where does
update-mime-database
look when it (re)creates /usr/share/mime directory structure?Maybe this will help to recognize and direct my RW2 files to thumbnailer "processor".
What I intend to do (after backing home) is:
0. put SD card in reader
1. initially sort my today's series of photos using file manager - copy particular images to let's say ~/photos/2020/animals/birds/skuas, ~/photos/2020/animals/birds/sheathbills and ~/photos/2020/landscapes/glaciers - the fastest way.
2. then Run RawTherapee and process chosen images, already sorted under directories
Of course I could use Digikam or Darktable but they:
a) need "importing a film role" or other stupid operations, when I prefer to manage just a files (I know that my camera produces bunch files containing image data, not "filmstrip" or "album")
b) slow down my workflow much - their file managers "image managers" are dumb and impaired, also not seeing freshly added files sorting files under file manager is most "natural" and fastest for me
c)don't see all images in directories - I can have 100 images in directory but DT sees only five because it has only five in database, because I haven't "imported" 95 files into directory that contains these 95 files (facepalm)
d) as an effect - such software slow down my workflow painfully, comparing to file manager with thumbnail option