I'm not getting any thumbnails in nautilus for my NEF files (photo raw). Is there an easy way to repair this?

  • Is this still reproducible? – Braiam Apr 7 '14 at 0:26
  • @Braiam Don't know about 14.04, but in 13.10 I had to install those extra packages as in my asnwer for it to work. – Dan Apr 7 '14 at 7:12

By default, Ubuntu doesn’t display thumbnails for NEF files. But you can try (as explained in this blog post) installing UFraw.

sudo apt-get install ufraw

And if itś not already existing, create a thumbnailer file /usr/share/thumbnailers/ufraw.thumbnailer, with content :

[Thumbnailer Entry]
Exec=/usr/bin/ufraw-batch --embedded-image --out-type=png --size=%s %u --overwrite --silent --output=%o

This file basically say to exec ufraw-batch (with the good parameters) on any file with the specified mimetypes (including image/x-nef).

  • 1
    +1, a small correction needed, it should be /usr/share/thumbnailers instead of /usr/share/thumbnailer – danijelc Dec 17 '13 at 11:04
  • 1
    I have a Panasonic camera, which creates RW2 files. I had to add the MIME Type of image/x-panasonic-raw2; to the end of the last line above. Works a charm after that! :) – seanlano Jan 12 '16 at 8:19
  • This does not work out the box on ubuntu 18.04, below answer from @Dan works great. – dogmatic69 Oct 23 '18 at 19:37
  • This works in 19.04. – Christians May 9 at 14:58
  • I can confirm this also work in 19.10, without even needing to restart Nautilus. NOTE: in my case I had to add image/x-panasonic-rw2 to the list of MIME types in the ufraw.thumbnailer file. – seanlano Sep 20 at 14:48

You can install the following packages, and Nautilus will start displaying thumbnails for NEF files without having to do any manual configuration.

18.04 and newer:

sudo apt install libopenraw7 libopenrawgnome7 gnome-raw-thumbnailer

It seems the libopenraw1 and libopenrawgnome1 are no longer available in 18.04 and above, they were replaced by libopenraw7 and libopenrawgnome7. In fact, the 2 libraries don't seem to be required to generate the thumbnails and can be skipped. However, if you include them, the generation of the thumbnails becomes much faster.

16.04 and earlier:

sudo apt-get install libopenraw1 libopenrawgnome1 gnome-raw-thumbnailer

source: Ubuntu Foums - viewing nikon NEF raw files?

  • 1
    not work at ubuntu 18.04. Can't find package libopenraw1 and libopenrawgnome1. – Tomasz Fijałkowski Sep 3 '18 at 7:41
  • 1
    This works great on ubuntu 18, but the packages are libopenraw7 or -dev, just remove the 1 and tab, you will quickly see what the correct package is. I used s/1/-dev for both. – dogmatic69 Oct 23 '18 at 19:38
  • @dogmatic69 Thanks for the info! I updated my answer. However, there's no need to install the -dev packages. It should be enough to use libopenraw7 and libopenrawgnome7. – Dan Oct 23 '18 at 22:44
  • 1
    As a matter of fact, it seems the libopenraw* libraries are not needed, and gnome-raw-thumbnailer is enough. But having them installed is making the generation of the thumbnails A LOT faster. – Dan Oct 23 '18 at 22:51

At ubuntu 18.04 just install gnome-raw-thumbnailer:

sudo apt-get install gnome-raw-thumbnailer

I am using gnome 15.10 , got non problem with nikon.nef and canon.cr2 ,but no way to show thumbnails of nikon.NRW

  • I can get preview only by script using dcraw , but not in gnome-thumnailers

Here the script i set in nautilus :

for i in $FILES
echo "Processing image $i ..."
/usr/bin/dcraw -e  $i thumb.$i

Of course this make a new jpeg on side of the pic....

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.