Skip to main content
Known Participant
January 21, 2023
Question

Scripting method for export to DNG?

  • January 21, 2023
  • 1 reply
  • 755 views

Hello together, i searched the SDK docs but i wasn't lucky. All i found was save as jpg/png.
Is there a method for converting raw files to dng programatically (extendscript)?

This topic has been closed for replies.

1 reply

gary_sc
Community Expert
Community Expert
January 21, 2023

Yes, download the DNG Converter from here: https://helpx.adobe.com/camera-raw/using/adobe-dng-converter.html

 

It's pretty straightforward to use: you point it to a folder of raw images, and it will convert them. I will not auto-delete the raw images (as it should not do), and it will let you do any deletions. If you've done any enhancement to the images, the XML and/or ACR files will be contained in the appropriate DNG file; nothing is lost.

 

Enjoy!

Rudolf LAuthor
Known Participant
January 23, 2023

Hi Gary, thanks for your answer. 

Thing is the DNG Converter's CLI doesn't work on Mac for years. You can only call the GUI. As soon as you apply an argument like "-l" or "-c" it will silently crash. That's why i'm asking if there is a way to programmaticaly access DNG conversion via Bridge's Extendscript or CEP API. 

Legend
January 23, 2023

This is not true. DNG Converter works fine on the Mac.

I have a Bridge script that calls the DNG Converter via command line and sends it the selected files or folder for processing. I just checked it with Bridge 2022 on a MacBook Pro running Monterey and it worked perfectly. You can install it as part of my Utility Script Pack, or it is Apache-licensed so you are free to use it in accordance with the license terms.

https://www.dropbox.com/sh/mg817g9a9ymbasi/AADTmXUVxmFfM58bcyYE7yiwa?dl=0