Converting Digital Camera Raw Files to the Dng Format using Adobe Photoshop Lightroom
I am a big fan of the Dng raw file format. Dng files hold all of their metadata internally without the need for separate external .xmp sidecar files. I believe that is a huge advantage over the proprietary, camera-brand specific, raw files that my digital camera creates. In my workflow smarter files are worth the extra step that it takes to turn a camera brand specific raw file into a Dng raw file. Adobe Photoshop Lightroom makes this conversion, this re-wrapping of the raw sensor data, super easy.
In Lightroom, we can shift most any brand of raw file into the Dng wrapper at the front-door as we empty our memory card.
We can also convert raw files that are already in our Lightroom catalog over to Dng using the Library > Convert to Dng feature.
Finally, we can create a new copy of a raw file outside of Lightroom using the File > Export dialog and selecting the Dng file format.
Watch this tutorial video for more on the advantages of Dng and on how easy it is to use this advanced file format with Lightroom.
Converting digital camera raw files to DNG using Lightroom from David Marx on Vimeo.
Click here for more information on the Dng file format from Adobe or here for a great article on this file format’s advantages from the ASMP’s dpbestflow project.
Filed Under: Exporting Images • Importing Images • Workflow







When you import in Lightroom, do you keep a copy of the original raw file somewhere, or are you depending on the dng files for everything?
Dear Dick F,
This is a personal choice. In my workflow, I do not store a copy of the original raw file in its proprietary (camera branded) file format anywhere. This makes life easier for me, but not all professionals will agree on this one.
If you only keep the dng file then you have cut yourself off from software that doesn’t work with dng. This means that my dng raw files will not work with the Canon Digital Photo Pro, Nikon NEF / Bibble, etc. This could be a big negative for some folks.
Personally, I am thrilled with Lightroom and ACR for all of my raw conversion needs. I don’t feel like I need any of these other programs, but again not everyone will agree.
David
Dick,
I’ll chime in on this one and say that I agree with David. I don’t ever plan on needing to go back to the “original” raw out of the camera, so I discard it after creating a DNG version.
There’s no right or wrong, though. You’ll find many different (heated) opinions on this.
-Scott
Yeah always.
ONLY because it produces a smaller file than my Sony A350′s RAWs (about 1MB smaller)
When I first got my Nikon D90 I couldn’t read my RAW files in any program for several months because it wasn’t yet supported.
Annoying and scary.
I convert everything to DNG now and delete original raw files… The future is much more likely to support the large universal standard of DNG than a camera specific Nikon D90 RAW .nef file.
Perhaps it’s because I’m not a pro, but I always use the original RAW files. Although I use Lightroom to manage my library, the camera vendor’s supplied viewing software provides additional EXIF information that that is useful in determining why a shot was spectacular – or not. For example, more details can be found in the RAW file regarding AF, AE, image stabilization, and flash information.
Maybe I’m crazy but I trust Adobe and don’t even bother with Nikon’s CaptureNX software. I exclusively use Lightroom and convert to DNG on import and discard the original RAW/NEF files.
One big negative for me with DNG is that the XMP data is written into the file rather than existing as a sidecar.
Here’s why: every time I change anything that gets written to XMP, that means the whole file has changed. And it slows my regular backups to network locations down tremendously. There is quite a difference between backing up a few hundred kilobytes in an XMP sidecar vs. 25MB in a 5D MkII DNG file.
I don’t have any problem keeping the XMP files sync’d with the originals: I don’t rename the files in the filesystem (I don’t care what they’re named) so that probably helps a lot.
I tried using DNGs for a while and I still get hit by this when I tweak my keyword system (it’s a forever-evolving system) and keywords get updated in those DNGs from that time.
DNG all the way for me. Although, I do have Lightroom keep a copy of the original RAW files in a separate folder I have never had to go back to those files. Knowing I have that backup lets me be extra aggressive when rejecting photos out of my catalog (I tell LR to delete them off the filesystem as well).
Kudos, Mike, for being aggressive in deleting those rejects. A good photographer not only takes good photos, but keeps his or her collection of images pared down to only the best.
-Scott
PS-I’m not that great at it yet. I could use some work on narrowing down my library!
So when you make any changes to the metadata, it is updated in the DNG file format? This all seems much more simple and organized than the CR2 format. I have lost edits because of sidecars not getting written or not exporting properly. I am nearly convinced this is the best route to go…
Bettie,
Yes, as long as the Automatically Write Changes to XMP checkbox is checked (or you save changes to your files), the metadata is written to the DNG file. No more sidecar files.
For me, it’s certainly the best solution.
-Scott
I don’t agree that you should only keep your best photos. I love looking at my bad photos because I can see how I’ve grown and / or what didn’t work. Also, if I ever want to create a book on how to photograph, it’s nice to have examples of what didn’t work, or progression of how the shoot went. In addition, some photo’s I take of my dogs, family, vacation may not be works of art, but have great memories.
I have read of photographers having another catalog that is just their best takes. That may be a good option so you don’t have the outtakes cluttering up the final picks in a catalog.
I do of course edit out the really bad, totally blurred, over/under exposed, etc.
That’s my 2 cents.
I have a NIkon D80 and for the last six months when importing images in NEF format to my Mac through Lightroom 2.x or Finder after around 10% have been imported the computer freezes indefinitely and would not allow a forced quit. That corrupted the Lightroom database and meant retrieving the backup. The work around was to only import a very small number at a time – tedious.
This morning, before calling Apple again(!) I tried converting to DNG on import and bingo, no problem. Has anybody else experienced this problem on a Mac with NEF files? I think I’ll stick to DNG in the meantime though!
@Leslie:
Thanks for you comment. As a teacher, I keep a lot of my mistakes, as well. However, I see students time and again who have unmanageable catalogs due to the sheer volume of mediocre images. One of the most frequent mistakes made by amateurs when showing their work is that they flip through image after image of bad shots muttering the mantra “Ok, there’s a good one coming up here somewhere…”
Anyone who’s sat through a slideshow of someone’s vacation pics can attest to that!
@Andrew:
I’ve not run into that issue before. Were you importing straight from the camera or were you using a card reader? Although an import with the camera plugged directly into the computer should work, I always recommend using a memory card reader. They are typically much faster and can reduce the (already low) likelihood of damage to your camera from a USB power issue.
-Scott
Scott, I’ve been importing directly from the camera. I assumed the problem was not related to this as transferring NEF files around in Finder also causes the same problem to arise. As I say, now that conversion to DNG format seems to have resolved the issue I’ll stick to that format and ditch the NEF files once converted. That said, I’ve heard from other sources that a card reader is more reliable than the a direct import from the camera and I think I’ll use one from now on to be on the safe side.
Thanks,
Andrew
Interesting issue, Andrew. If you’re experiencing the problem from the Finder as well as directly from the camera, then, you’re right, I’m sure it’s not the direct camera import that’s the issue.
I prefer DNG anyway, but I know it’s frustrating when things don’t work the way they should.
-Scott
Micheal W Gray published this excellent article on DNG conversion recently on the X-Equals blog.
Grant Gunderson, one of my favorite photo editors / publisher, is now accepting “Dng raw files” with “meaningful metadata” only for consideration in his magazine The Ski Journal. I believe that we will soon see similar rules from all of the topflight publishers. Click here to see The Ski Journal’s complete submission guidelines.
–
David Marx
thank u for this great explanation on dng files. my question is if the dng already contain all the metadata, do we still need to import as a catalog? can we just convert to dng?
Dear Lisa,
I am not sure that I understand your question. This tutorial is all about how to shift your raw files into the dng format within Lightroom. You would only use the “Import as Catalog” feature if you were combining one catalog into another. Why and where are you using this option in your routine?
–
David
thank u David,
what i understand here is Catalog= metadata, DNG= metadata+photo. so if we have both metadata and photo in DNG file, why we need Catalog to record the metadata? sorry to confused u :d
Dear Lisa,
This is confusing stuff and you are on the right track. Metadata is any textual information added to a digital image.
By converting to the Dng file format this textual information– your copyright for example–can be stored along with the raw sensor data inside of each file. Raw files in proprietary, meaning camera brand specific, formats cannot hold this sort of text internally. Since they can’t store the info internally these files need a sidecar xmp file, think of it as a post-it note, to hold important information.
This internal vs. external metadata storage is a property of the file’s themselves regardless of what image management software you use. What makes Lightroom special is that it builds a searchable index for your photography.
For every file– meaning every photo–that is added into your index Lightroom creates an “index card.” Each “index card” records the file’s name, it’s location on your hard drive, all of it’s metadata, and a couple of thumbnail-sized copies of the image.
Searches in Lightroom produce almost instantaneous results because the catalog keeps its own records about your images. (See Lightroom vs. Adobe Bridge for more details.) Not only does the catalog produce instant search results but it can also store information that is not part of the file’s metadata. Features like the pick / reject flags, collections, and virtual copies are all stored only at the catalog level. There in’t a metadata field for the name of a collection or for a virtual copy.
What I am trying to say is that we need the catalog for two reasons: a, fast searches even if the file’s themselves are offline and b: to store features of the program that cannot be written into a file’s metadata.
I hope this helps,
David
thank u very much, Dave!
Hi admin , This is interactive article for my homework from school Do u have twitter account ?? i want to follow your twitt . Good bye
Dear Bennie,
You can follow us on twitter here. Good luck with your homework.
–
David
I am new to lightroom. I have an extensive archive of both my raw images, as well as the jpegs created from the raws through Canon’s DPP. When I do my initial import (wanting to do it soon obviously), should I only import the raws and convert them to dng, or should I also import the jpegs? Thanks for your assistance.
Joe,
That decision is up to you. I’d encourage you to just import the raw files (converting them to DNG if you desire). If you import the JPEG files, as well, you’ll have a great number of confusing duplicates to deal with in Lightroom.
The down side to my suggestion is that, if you’ve made favorable corrections to those raw files before converting them to JPEG, you’ll lose the changes you’ve made by just importing the raw files. If there are a few images which have received lots of editing, you could choose to import those alongside their raw companions.
In the end, however, the files which will prove the most useful and flexible for you in Lightroom will be those in the raw format. Lightroom reads and works with JPEG files just fine, but there’s much less data contained in those files limiting the amount of editing you can safely do on them.
-Scott
Really appreciate all the good info here, thanks! I am also new to Lightroom and am absorbing as much as I can before diving in (yes, I’m one of those people). That last question about JPEGs reminded me of my situation. I just recently purchased a new DSLR setup and now shoot in RAW plus JPEG (on a separate card), but I have thousands of photos going back to my first digital camera, an Olympus C5050. While it has the capability to shoot in RAW, I rarely did, so I plan to import all my old photos that are JPEGs. Would it make sense to have them organized within LR in a different way, since as you mention, I’m limited with what I can do with them?
Any suggestions there would be appreciated.
Bill
Dear Bill,
Kudos to you for doing you research before jumping into the software. You are asking a good question here and one where there is no absolute right or wrong answer. If I were you I would make, one and only one Lightroom catalog, and use it to index both your old Jpegs and your new Raw files. I don’t see any reason to treat these files differently or to divide them up. I often shoot in Jpeg and I even have some .Tif files from my film scanning days. These files live side-by-side with my Raw files in Lightroom and I search through all of my images using metadata. I use the same keywords and metadata template regardless of the file format.
Not every Lightroom expert will agree with me here though. I am big believer in keeping things simple. By using the same catalog, and the same organizational system, for all of my files I can find anything and everything that I need in a single search. If you divide things into separate catalogs then searching gets more complicated.
–
David