http://www.penguin.cz/~utx/gnome-dcraw:

           GNOME integration of digital camera RAW format MINI HOWTO

   I am using [1]GNOME desktop for my daily work and I manage photos from
   my digital camera in Nautilus commander. There is MINI HOWTO for
   integrating RAW files to GNOME 2.4, 2.6 and 2.8 using tools from
   [2]dcraw project.

   With these files you will be able to see digital camera RAW file
   thumbnails in Nautilus and open images by clicking on them.

   You can also change the file contents, and use this MINI HOWTO to add
   any new MIME-type to the system.
    1. Install any rawphoho plugin to the [3]GIMP (file names mentioned
       below and names in files are valid for GIMP 2.2): either simple
       [4]Dave Coffin's rawphoto plugin or nice [5]Pawel/ Jochym's
       RawPhoto or [6]Udi Fuchs' UFRaw or [7]Joseph Heled's rawphoto
       (last two has some Nikon enhancements).
    2. Define image/x-dcraw mime type. Copy [8]dcraw.mime to
       /usr/share/mime-info. It defines this mime type for suffixes .bay,
       .bmq, .cr2, .crw, .cs1, .dc2, .dcr, .fff, .k25, .kdc, .mos, .mrw,
       .nef, .orf, .pef, .raf, .rdc, .srf and .x3f.
    3. For the same purpose in GNOME 2.6 and later you need to define
       [9]Shared MIME Info Database entry by copying [10]dcraw.xml to
       /usr/share/mime/packages. Then you need to run
       update-mime-database /usr/share/mime.
    4. Define standard application for opening RAW files - [11]GIMP by
       copying [12]dcraw.keys to /usr/share/mime-info. Let me know more
       translations (in current GNOME not yet displayed). Note that
       gimp-2.2 is not executable name, but key name from
       /usr/share/application-registry/gimp.applications. For older GNOME
       applications, edit this file and add ,image/x-dcraw to the end of
       line with mime_types=. You should properly install (or link) these
       files from /usr/share/gimp/2.2/misc, if your distribution does not
       do it for you.
    5. For the same purpose in GNOME 2.8 and later you need to edit
       /usr/share/applications/gimp-2.2.desktop and add a string
       image/x-dcraw; to the end of the line beginning with MimeType=.
       Then you need to call update-desktop-database.
    6. Copy default icon [13]gnome-dcraw.png defined by keys file to
       /usr/share/pixmaps.
    7. For the same purpose in GNOME 2.8 and later you need to copy or
       link the icon to file gnome-mime-image-x-dcraw.* in directory
       /usr/share/icons/gnome/*/mimetypes, e. g. by ln -s
       /usr/share/pixmaps/gnome-dcraw.png
       /usr/share/icons/gnome/48x48/mimetypes/gnome-mime-image-x-dcraw.pn
       g.
    8. Copy [14]dcraw-thumbnailer somethere to your path. Note that this
       script requires preview included in RAW file, It uses parse from
       [15]dcraw (this binary can have name dcparse or miss in your
       distribution, please verify and optionally edit the script) and
       gnomevfs-copy. If your camera has small or no RAW preview, you can
       use alternative [16]dcraw-thumbnailer, which uses original RAW
       data interpreted by dcraw. It is significantly slower, but can
       result much better results (thanks to Mattias Holmlund).
    9. Let GNOME know about your new thumbnailer - copy [17]dcraw.schemas
       to /etc/gconf/schemas and generate GConf database entries:
       GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` gconftool-2
       --makefile-install-rule dcraw.schemas.
   10. Don't forget to set "Only smaller than" in your Nautilus preview
       preferences to proper file size.

   Alternative installation to /usr/local directories: If you
   distribution sets environment variable GNOME2_PATH to proper value (e.
   g. /usr/local:/usr), it's also possible (except /usr/local/share/mime
   - there you need variable XDG_DATA_DIRS).

   Note that those paths are valid only for GNOME in /usr prefix. It can
   vary on different distributions:
     * SuSE Linux =< 8.2:
/etc -> /etc/opt/gnome2
/usr/share -> /opt/gnome2/share
     * SuSE Linux >= 9.0 (except /usr/share/mime):
etc -> /etc/opt/gnome
/usr/share -> /opt/gnome/share
     * Self compiled GNOME:
/etc -> /usr/local/etc
/usr/share -> /usr/local/share

   LICENSE: Files in this HOWTO are free software; you can redistribute
   it and/or modify it under the terms of the GNU General Public License
   as published by the Free Software Foundation; either version 2 of the
   License, or (at your option) any later version. Source form of icon is
   available in [18]XCF format.

   PROBLEMS: RAW files can also have following suffixes: .jpg, .raw and
   .tif. It's impossible to detect RAW file from these suffixes, so it's
   required to detect them from contents. Owners of such cameras: Please
   send me a magic keys for those files. Mime file: Added most suffixes.

   TODO: Small icon (needed for example for GTK file dialog), better
   thumbnailer, gdk-pixbuf loader, nautilus RAW EXIF reader. Any
   volunteers?

   NEWS 2005-03-01: New definition of MIME type icon.

   NEWS 2005-01-30: Use /tmp for temporary files.

   NEWS 2005-01-29: Significantly improved thumbnailer: don't create
   temporary file for local files, work correctly for write-protected
   files, alternative thumbnailer. Updated known problems.

   NEWS 2005-01-15: Inform more about programs and GIMP plugins, GNOME
   2.8 support. Updated names for GIMP 2.2.

   NEWS 2004-09-06: Fixed dcraw.keys (translation syntax).

   NEWS 2004-09-02: Removed obsolete thumbnail scaling (nautilus does
   it). Thumbnailer is now much faster. GPL license.

   NEWS 2004-08-25: Fixed bug in schemas file (bad enable key). Recognize
   more suffixes. Thumbnailer: Delete temporary directory. Icon. New
   sections Installation to /usr/local and Problems and html
   improvements.

   NEWS 2004-05-04: Remove temporary files in dcraw-thumbnailer.

   NEWS 2004-04-16: Initial version.
     _________________________________________________________________

   Notes and questions send to: [19]Stanislav Brabec

   [20]Main page of Penguin's UTX WWW

   [21]Penguin server [22]Valid XHTML 1.0! [23]Valid CSS! 

References

   1. http://www.gnome.org/
   2. http://www.cybercom.net/~dcoffin/dcraw/
   3. http://www.gimp.org/
   4. http://www.cybercom.net/~dcoffin/dcraw/rawphoto.c
   5. http://ptj.rozeta.com.pl/Soft/RawPhoto/
   6. http://www.aei.mpg.de/~udif/UFRaw/
   7. http://pages.quicksilver.net.nz/pepe/d70/Nikon_D70_on_Linux.html#gimp
   8. ftp://ftp.penguin.cz/pub/users/utx/gnome-dcraw/dcraw.mime
   9. http://www.freedesktop.org/wiki/Standards_2fshared_2dmime_2dinfo_2dspec
  10. ftp://ftp.penguin.cz/pub/users/utx/gnome-dcraw/dcraw.xml
  11. http://www.gimp.org/
  12. ftp://ftp.penguin.cz/pub/users/utx/gnome-dcraw/dcraw.keys
  13. ftp://ftp.penguin.cz/pub/users/utx/gnome-dcraw/gnome-dcraw.png
  14. ftp://ftp.penguin.cz/pub/users/utx/gnome-dcraw/dcraw-thumbnailer
  15. http://www.cybercom.net/~dcoffin/dcraw/
  16. ftp://ftp.penguin.cz/pub/users/utx/gnome-dcraw/alternative_thumbnailer/dcraw-thumbnailer
  17. ftp://ftp.penguin.cz/pub/users/utx/gnome-dcraw/dcraw.schemas
  18. ftp://ftp.penguin.cz/pub/users/utx/gnome-dcraw/gnome-dcraw.xcf
  19. mailto:utx@penguin.cz
  20. http://www.penguin.cz/~utx/index
  21. http://www.penguin.cz/
  22. http://validator.w3.org/check/referer
  23. http://jigsaw.w3.org/css-validator/check/referer
