Skip to content

Instantly share code, notes, and snippets.

@h4cc
Last active November 28, 2022 12:53
Show Gist options
  • Star 38 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save h4cc/13450db3d4a7457f9b38 to your computer and use it in GitHub Desktop.
Save h4cc/13450db3d4a7457f9b38 to your computer and use it in GitHub Desktop.
Getting Thumbnails / Previews of your RAW files in Ubuntu

Howto

Install these programms

sudo apt-get install gnome-raw-thumbnailer ufraw-batch

Try now if everything works, and your thumbnails show up. If not, try the following part.

Fixing missing mime types

In case the default config does not work for you, try this:

Edit the file /usr/share/thumbnailers/raw.thumbnailer as root and insert the following content:

[Thumbnailer Entry]
TryExec=ufraw-batch
Exec=ufraw-batch --silent --size %s --out-type=png --noexif --output=%o --overwrite --embedded-image %i
MimeType=image/x-canon-cr2;image/x-canon-crw;image/x-minolta-mrw;image/x-nikon-nef;image/x-pentax-pef;image/x-panasonic-raw2;image/x-samsung-srw;image/x-olympus-orf;

Check if the mime type of your RAW images in in the MimeType list.

After that, stop nautlius and clear the thumbnail caches:

nautilus -q
rm -rf .cache/thumbnails/* .thumbnails/*
@TimTrojner
Copy link

Thanks, it works 😄 !
I had to add image/x-fuji-raf; to the end of the raw.thumbnailer, for fuji files.

@Lamera
Copy link

Lamera commented Apr 11, 2022

@rebernet I also don't get it to work with Sony ARW files on Ubuntu 21.10. Would be nice to see thumbnails of my photos in the file manager.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment