Friday, October 12, 2012

Seeing RAW files within Nautils

One of the most frustrating things that I have found whilst working with linux as the core operating system, well ubuntu/gnome etc... is that my NEF files are not displayed as a thumbnail.

While opening the NEF file is easy enough, I wanted a way to quickly search/browse my images and view the contents.

After a little digging up, I found that this can be easily accomplished by following these steps.

Install ufraw from the repos using aptget:

sudo apt-get install ufraw 

Next, you will need to create a file called raw.thumbnailer in /usr/share/thumbnailers. If you do ls /usr/share/thumbnailers/ you'll notice that a this file doesn't exist. To create this file simply execute :

sudo gedit /usr/share/thumbnailers/raw.thumbnailer

Once the file is open in gedit then copy and paste the following:


[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;


Then save the file (File > Save), and then close the gedit. At this point you can check nautilus to see if the raws have a thumbnail image. If it doesn't then execute the following command in terminal:

nautilus -q

Then open a new nautilus window and check the raw files and hopefully you'll be jumping for joy.

I hope this works, I had to go through several forum posts to work out what was wrong. I also installed gnome-raw-thumbnailer (sudo apt-get install gnome-raw-thumbnailer) before installing ufraw. But then in another post it stated that gnome-raw-thumbnailer is no longer required. If you have any problems then please try installing gnome-raw-thumbnailer. Futhermore, I also installed gconf-editor (sudo apt-get install gconf-editor) .


0 comments:

Post a Comment