Adobe DNG Converter 6.7: Please update documentation for command-line use.

  • 3
  • Idea
  • Updated 4 years ago
  • Implemented
Please update documentation for command-line use of DNG Converter.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes

Posted 6 years ago

  • 3
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
Did you ever get a response from Adobe? Just as I was finally getting around to completely automating basic RAW conversion and processing... the command line seems to have changed.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
No response from Adobe yet.

Is command-line not working for you anymore? I *think* there are just some new options, but otherwise about the same, no?
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
Did some additional experimenting since I posted the previous message. this is my first attempt trying to use it. Apparently it doesn't take wildcards and doesn't assume that if you give it a folder name, it should process all RAW files in that folder. I had mistakenly figured it would work that way, since the GUI version does. Have you found a way to loop through all the RAW files in a folder tree so that it behaves like the GUI version? I'm assuming someone must have written a script that does this, but I haven't located one yet and am 30 years too rusty in programming skills to want to attempt this.

Thanks,
David
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Hi David,

Well, Lightroom has DNG conversion built in, so I'm not sure what all would need automating... - I mean one could write a lua plugin or shell script...

Perhaps you could provide more context - what are you trying to accomplish how...

??

R
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
I don't use Lightroom, do use Photoshop. I'd like to create a simple batch file that downloads image files from my SD card into subfolders of a folder I am calling New_Photos and then calls Adobe DNG Creator via the command line interface to convert all the RAW files in the New_Photos folder and all its subfolders, and finally calls my image management application, IMatch, and sets off a scan of New_Photos. The piece I'm missing is activating Adobe DNG Creator from the command line in such a way that it walks the folder and subfolder tree and converts all the RAW files to DNG, as it does when you use the GUI. Currently, the command line interface seems to allow only the conversion of explicitly named files, so I'd have to iterate through all the files in the current folder, then through all the files in each subfolder. In my case, there will only be one level of subfolders, derived by my downloader app from the date the images are shot (2012-05-13, 2012-05-14, etc.)

Thoughts?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Sounds like you know what to do, now you just gotta do it ;-}

I don't know any way to get DNG Converter to automatically do a folder via command line. - maybe somebody else knows..
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
Beyond my script writing skills. But I'm sure somebody, somewhere, has done it.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
|> "Just as I was finally getting around to completely automating basic RAW conversion and processing..."

What have you got so far?
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
I don't think I understand the question. The whole thing will be a three-line batch file. Line one, DIM as a command-line file importer that sets up folders of files based on date, under the main download folder. Line, two, a script to activate the command-line version of Adobe DNG Converter and walk down the subfolders. Line three, I'll start IMatch with a startup script that scans the new folders and imports them. I haven't written this, but that's should be just a few lines of Basic. What I'm missing is a script that walks down the folder tree and calls the DNG converter to process each RAW file in each folder in the tree. Then I can stick a card in the slot, kick off the batch file, and go do something else for an hour.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
So, you currently have *no* elements of the script you envision, yet, but you envision it being a "dos" batch file?

Presumably you use Windows? Or did you mean "batch file" in the general sense of the term, but you actually use Mac?

The reason I ask is they don't share the same scripting engines, so step 1 is to define the scripting language to be used, if that has not yet been done...

?
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
I use Windows. It doesn't matter if the main script is a batch file (.bat) or a script file. All it will do is launch three programs and another script. I assume the easiest way to do this is to locate a script someone has written that walks a directory tree and executes a command on each file of a particular extension or set of extensions until it has completed walking the tree--a For loop would do this, with the right parsing for directory and file names. Pseudocode would be something like:

For in New_Photos:
IF change to that folder and process all the RAW files in it
ELSE IF process that file
ELSE IF no more folders or files EXIT loop.
Next
End

As I say, it's been many years since I did any programming, and I don't really want to learn enough about Visual Basic or some other scripting language to write this from scratch. I am not a particularly good programmer and only did it as a hobby a long time ago.

This is not an uncommon problem. Somebody must have figured out how to solve it, or at least most of it. My goal now is to find the tree-walking script that is likely out there, or better a wrapper someone has already created that takes the DNG converter as input and feeds it a tree of files to convert.
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
Note: I have found a basic tree-walking script, but not one that executes a command on each file or folder it finds.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Hi David,

I think I'll bow out at this point, since it seems you have a handle on it.

I assume you are talking about a .vbs script.

Good luck with it.

If you post specific scripts with specific problems / questions, I will probably still comment...

Rob
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
Thanks for your encouragement. After digging around in various scripting forums and not finding what I want, I started looking into using pure batch files instead. It turns out the "for" loop in a batch file can recursively execute a command. It's too late tonight for me to try this, but it looks as if that will solve the problem of the DNG converter working only on individual files rather than folder trees. If that turns out to be the case I'll post the working version here.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
OK. Standing by... :-)
Photo of David Bookbinder

David Bookbinder

  • 9 Posts
  • 0 Reply Likes
This seems to do the trick. To make it more flexible, substitute variables for the RAW file types, input folder and/or converter parameters.

for /r F:\Photos\Captured\New_Photos %%i in (*.rw2 *.srw) do "C:\Program Files (x86)\Adobe\Adobe DNG Converter.exe" -c -cr5.4 -p2 "%%i"
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Sweet! - thanks...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Bout time now for the command-line documentation to be updated - does anybody disagree?
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
UPDATE: Applies to Lightroom too.
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
http://wwwimages.adobe.com/www.adobe....

Please update this document. Some of us have been waiting for this document to be updated, for several months now.

Or, is there an updated document somewhere that I am not aware of?

At a minimum, just post, right here, a quick list of the additional new options, e.g. for lossy compression...

This reply was created from a merged topic originally titled
Adobe DNG Converter: documentation is out of date..
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
It's been well over a year and documentation for command-line use has still not been updated. I don't know what to think - was giving the benefit of doubt, now thinking the worst...
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
Over 2 years and no update to the doc - what are we to think?

Isn't this something that would take about 1 minute (literally) to fix?

Nobody thinks of it as their job??

Is Adobe regretting offering command-line parameters for DNG Converter in the first place???
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 382 Reply Likes
This feature-request/idea has been implemented - thank you Adobe.