10 Replies Latest reply on Jul 18, 2015 2:06 PM by ssprengel

    Replace DNG files with original RAWs

    dg9ngf

      I'm currently using Lightroom 4 which does not support my newest camera model. So I converted the .cr2 files to .dng and imported those into Lightroom. But I did keep the original .cr2 files in case I need them. Now I want to buy the upgrade to Lightroom 6.1 which should support the camera model. When I've done this, I'd like to replace the .dng files in my catalogue with the original .cr2 files and delete the .dng files to save space.

       

      I know that I could find every .dng file, import the .cr2 file alongside, copy the metadata and development settings one by one, and then remove the .dng files. This would probably kick those photos out of collections and such. And it's a hacky way and lots of work. It's a bit over 400 files by now.

       

      Is there an easier way to replace those files and leave all other data (metadata, development settings) untouched? Will those .cr2 files be recognised as sidecar files when I import them from the right directory, and can I delete the .dng afterwards? (In the past, I couldn't remove deleted .xmp or .jpg sidecar files from the catalogue, they'd stay there forever, missing.) Could I open the catalogue database (an SQLite database, I have editors for that) and simply replace the source file names somewhere? Or are there third-party tools to do the work for me?

        • 1. Re: Replace DNG files with original RAWs
          JimHess Adobe Community Professional & MVP

          Your original raw files and the DNG files both contain precisely the same raw image data. So what do you expect to gain by trying to go back to the original files? My suggestion would be to just leave the DNG files as they are, and then start working with the CR2 files after you upgrade. You aren't going to see any difference at all in quality. But if you want to take the time to match the DNGs to the CR2 files and then copy the metadata and adjustments, go ahead. In my opinion, however, it's just an exercise in futility.

          • 2. Re: Replace DNG files with original RAWs
            Just Shoot Me Adobe Community Professional

            I agree with the above post.

             

            All DNG files store the edits you have already done on those older images inside the actual DNG file. So if you delete them all edits will be gone. They will not be transferred over to the originals. LR sees the DNGs and the originals as 2 completely different images even though they may be of the same subject and have like file names except for the extension.

            • 3. Re: Replace DNG files with original RAWs
              JimHess Adobe Community Professional & MVP

              That comment is just slightly misleading. Lightroom does not automatically save edits inside of DNG files any more than it automatically saves changes to proprietary raw files in XMP files. The default method for saving changes to proprietary raw files, DNG files, JPEG files, TIF files, etc., is to save them in the catalog. And it's necessary to specifically make a change in preferences in order to have those changes saved to the file. But even then, not everything gets saved, and it can become confusing. I still feel that the best way to handle things is to let the catalog be the crucial file in Lightroom that stores all the adjustments. It's just a vital that the catalog is protected and backed up on a routine basis.

              • 4. Re: Replace DNG files with original RAWs
                Just Shoot Me Adobe Community Professional

                Doesn't really matter where the edits are saved. They won't be carried over to the originals as LR see those as separate files as stated in my first post.

                 

                I disagree in letting the catalog be the only place to store edits. To each their own.

                • 5. Re: Replace DNG files with original RAWs
                  JimHess Adobe Community Professional & MVP

                  I've been using Lightroom since early in version 2, and the catalog has never failed me. But like you say, to each his own.

                  • 6. Re: Replace DNG files with original RAWs
                    bhousto90 Level 3

                    If you really wish to proceed with using the CR2 files instead of the DNG files you could use John Beardsworth's Syncomatic plugin to sync edits from the DNG files to the Raw files.

                     

                    Import CR2 files to same folder

                    Run Syncomatic and select the metadata you want to sync.

                    Use Lightroom to sync cropping (the plugin cannot perform this step)

                    Remove your DNG files from Lightroom after confirming everything is sync'd

                     

                    Note: Besides not being able to sync the crop settings for the files this process also removes all of your history steps (you just get the final state of the file)

                    History just shows as "import date/time" and a new history step "temp".

                    • 7. Re: Replace DNG files with original RAWs
                      Just Shoot Me Adobe Community Professional

                      That's fine if you don't use ACR also. I do so I want the edits store from both LR and ACR to be read by the other.

                      • 8. Re: Replace DNG files with original RAWs
                        dg9ngf Level 1

                        Uhm, I know that there is a controversial discussion about whether original RAW files or converted DNG files are better. I chose to stay with originals. Only they're not supported in the older Lr version.

                         

                        It seems like there's no easy solution to this. I've found file names in the catalogue database. I think I'll just try my luck with that. (I work with SQL databases almost every day.)

                        • 9. Re: Replace DNG files with original RAWs
                          JimHess Adobe Community Professional & MVP

                          Well, for what it's worth, I don't convert to DNG on a regular basis. The only time I do convert is usually when I don't have support for a camera. And that really isn't very often. I'm not arguing which is better, DNG or native raw files. I'm just saying that it's going to be an exercise in futility (in my opinion) to worry about switching the DNG files that you have already done. But that is your choice. If you want to take time to try to match up the adjustments, go for it.

                          • 10. Re: Replace DNG files with original RAWs
                            ssprengel Adobe Community Professional & MVP

                            As stated, earlier, John Beardsworth's Syncomatic plugin will do what you want, I believe, although use the 10-image-limited trial to make sure:  Syncomatic - Sync files with same name or time

                             

                            As far as changing names of file extensions in the database, I wouldn't necessarily assume that DNGs are handled identically, so changing the names is not a guarantee that things will work entirely the same--things like crop origin or number of pixels might be different, so it seems like a plug-in that actually uses LR's API to do things would work more reliably.