Saturday, August 20, 2011

DNG2NEF user manual

The DNG2NEF converter will read your uncompressed raw files from a
Leica M9 or X1 camera, and write them as Nikon NEF files, so you can
incorporate them into your NEF workflow.

This version 2.0 has been tested against firmware 1.162 of the M9, and
both versions 1.0 and 2.0 of the X1.














The conversion will not touch/harm your DNG files, as they will only
be read. The resulting NEF files will have all the camera settings
from the original templates, plus the following from the DNG files:
  • A properly sized JPG preview, generated using Nikon libraries that take into account the NEF settings;
  • The sensor raw data;
  • The white balance setting;
  • Most of the applicable Exif parameters.
Note that the camera maker and model remains those of the Nikon
template. To install DNG2NEF, just download and unzip the desired file:
Put the files under any directory, and either include this directory
on the executable path, or invoke directly the executable file. Both
platform versions carry dynamic libraries of the Nikon NEF SDK, which
is used to generate the JPG preview.

Usage of the tool is quite straightforward. You can convert individual
files, or batch process all files under a given directory.




















To convert an individual file, select this DNG pressing the "DNG input
file" button, choose an output directory with "Ouput directory", and
press "Convert".

To batch convert all files under a given directory, select this with
the "Input directory" button, set the "Ouput directory", and press
"Convert".

The settings of input/output dirs are saved in a file named
$HOME/.dng2nef, so they are recalled from session to session. I use
this tool to digest the DNG files from the SD card, and directly write
the NEFs into my computer.


DNG2NEF License

"Author" herein refers to Miguel Bañón (the creator of DNG2NEF).
"Software" refers to all files included with DNG2NEF (typically
extracted from a .zip archive).

Except where otherwise noted, all of the documentation and
Software is copyrighted by Miguel Bañón (the Author).

Copyright (C) 2011 Miguel Bañón. All rights reserved.

License and costs

The Software is being distributed as Freeware.
Use and distribution of the Software is permitted provided
that all of the following terms are accepted:

1. The Author grants you a non-exclusive license to use the
    Software subject to your compliance with all of the terms
    and conditions of this Freeware License.

2. You will not have any proprietary rights of the Software.
    You acknowledge and agree that the Author retains all
    copyrights and other proprietary rights of the Software.

3. The Software is provided "as-is," without any express or
    implied warranty. Without even the implied warranty of
    merchantability and fitness for a particular purpose. In
    no event shall the Author be held liable for any, direct or
    indirect, damages arising from the use of the Software.

4. All redistributions of the Software's files must be in their
    original, unmodified form. Distributions of modified
    versions of the files is not permitted without express
    written permission of the Author.

5. All redistributions of the Software's files must retain all
    copyright notices and web site addresses that are
    currently in place, and must include this list of
    conditions without modification.

6. None of the Software's files may be redistributed for
    profit or as part of another Software package without
    express written permission of the Author.

7. Use of the Software within the scope of this license is
    free of charge  and no royalty or licensing fees shall be
    payable by you. Use beyond the scope of this license
    shall constitute copyright infringement.

8. This license shall be effective and bind you upon your
    downloading of the Software.

9. The Author reserves his rights to modify this agreement
    in the future.

If you do not agree to all of the above terms, you are not
permitted to use the Software in any way, and all copies of
it must be deleted from your system(s).

Miguel Bañón
http://www.bagnon.com

20 comments:

  1. Thank you for your making the great tool. I've got dng2nef v2 and extract it on windows vista 32bits system . when I click dng2nef.exe, the following error message is coming up. Would you show any advice for me?

    "couldn't load library "C:xxx/dng2nef/dng2nef.exe/lib/nefutils1.0/nefutils.dll":No error while executing load{C:xxx/dng2nef.exe/lib/nefutils1.0/nefutils.dff}.............."

    ReplyDelete
  2. Hi kota2009,

    There are a number of dll files that come in that zip file that need to be side by side with the dng2nef.exe. Make sure you have unzipped all of them and that you are not running it from the zip itself.

    ReplyDelete
  3. Thank you for the quick response.
    the dng2nef.zip which I got includes the following files. Are any other files needed?

    dng2nef.exe
    NkImgSDK.dll
    Strato7.dll
    Zelkova6.dll
    Zekova6Lang.dll

    ReplyDelete
  4. Yes, that's all.

    It could be that your Windows does not have the C++ libraries, try installing these from Microsoft:

    http://www.microsoft.com/download/en/details.aspx?id=3387

    http://www.microsoft.com/download/en/details.aspx?id=5555

    ReplyDelete
    Replies
    1. It's ok for running the exe file but not with the tcl. I can't find nefutils.dll on my windows system. Error on line : package require nefutils
      Thank's

      Delete
    2. Yes, nefutils is embedded into the exe. Find it here if you want to use it from Tcl 8.5,

      http://www.bagnon.com/dng2nef/nefutils1.0.zip

      This small Tcl extension is a C interface to the Nikon NEF SDK services that dng2nef needs. I will not release its source code, since it contains code from this Nikon SDK, and that is not for unrestricted distribution, as far as I understand their terms of use.

      Delete
    3. Merci beaucoup !
      I'm going to try to convert dng from ricoh. But i'm not a pro ...

      Delete
  5. Bingo!
    I can use the converter after installing the libraries.
    Thanks!

    ReplyDelete
  6. I received the message:

    "Camera model "NIKON D 700" not supported, must be one of

    - M9 Digital Camera
    - LEICA X1

    Is there a way I can find a profile that will support my files? Thank you for your efforts :)

    Robin

    ReplyDelete
  7. Hello Robin,

    This utility reads Leica DNG files, and writes them as Nikon NEF files, but not the other way.

    The message that you copy seems to indicate that the input DNG came from a D700. If you have a D700, then your camera can give you NEF files out of the box.

    Can you explain me better what do you want to achieve?

    Miguel

    ReplyDelete
  8. You are correct, the files were from a Nikon D700 but were ingested into Lightroom and converted to the DNG. I have found that Nikon View NX2 processes my images beautifully but will not process the DNG files. I was looking to convert them back to NEF.

    You are awesome for your response :) Thank you so much :)

    Robin

    ReplyDelete
  9. Ok, that being the case, if you were careful/lucky to choose to embed the original NEF into the DNG, you can get your NEF back with the Adobe DNG converter, see

    http://www.nyip.com/ezine/digital/adobedng.html

    Regards,

    Miguel

    ReplyDelete
  10. Hola,

    Saldrá alguna actualización para el ultimo firmware de la M9?

    Gracias de antemano...

    Pere-Jordi.

    ReplyDelete
  11. Sí, la tengo funcionando y la sacaré enseguida. He aprovechado para hacerlo más rápido y alguna que otra mejora. Si me pasas un email te la mando para que pruebes.
    Saludos,
    Miguel

    ReplyDelete
    Replies
    1. Muchas gracias Miguel, encantando en probarla si la sacas. Soy Kilops de Leicaeme, te mandaré mi mail por privado.

      Un saludo.

      Delete
  12. Hi,
    Thanks for making this program.
    I would like to run this under Ubuntu, but I will need a 'nefutils.dll' for
    Linux. The program starts if I comment the line like this
    '#package require nefutils', but I get a blank .nef file.
    'load nefutils.dll' is not working.
    Hope you can help me!
    Burro

    ReplyDelete
  13. No way to run it on Linux. I am using the native Nikon NEF SDK, and that only includes binary libraries for both Windows and OSX.

    https://sdk.nikonimaging.com/apply/

    If they ever release the SDK for Linux, it will take only a few minutes to port DNG2NEF.

    Capture NX does not work either in Linux, so I see not too much point for DNG2NEF to do so in any case.

    ReplyDelete
    Replies
    1. Borre HolmesletMay 5, 2012 at 7:27 AM

      Thanks for your answer.
      I run Linux(64 bits) and Win 7 (32 bits) on the same computer, sharing the same harddisk. I cannot convert using the 32 bit version of DNG2NEF
      because I have the latest firmware on my M9 (gives an error message)
      If I had the 32 bits version which accepted the latest firmware it
      would be OK.
      Borre

      Delete
  14. Now I get the point.

    Give me a couple of weeks, and I'll post an updated 32bit Windows version.
    Regards.

    ReplyDelete
  15. Thanks a lot...
    Borre

    ReplyDelete