New Plugin For DNG Export

November 3rd, 2007

This weekend I decided to try my hand at creating a simple plugin that would allow me to export images as DNG files. My idea was simple enough - create an Aperture plugin that mimics the Adobe DNG Converter.

So, I spent a good portion of the day looking online for information on DNG. I downloaded the DNG SDK from Adobe and spent a great deal of time just trying to make heads or tails of it. In the meantime, I designed an interface that looks essentially the same as the Adobe DNG Converter’s preferences panel. This gives the user a few options on export.

Eventually I found out that the DNG SDK cannot write a DNG from an arbitrary RAW file format. In fact all it really can do is read a valid DNG file, and write one (isn’t that the same as making a copy?).

But then I realized all I really needed to do was to call the Adobe DNG Converter command line tool which is hidden inside the application’s package contents.

This isn’t ideal as the user will now see the little Adobe icon popping up over and over again in the dock, and the user must first install the DNG Converter before using my plugin, but it works.

So that I could say I finished an Aperture plugin in one day, I am calling this one a BETA release. Hopefully in the future I will be able to expand on it, adding more sophisticated options and freeing myself from the constraints of the command line tool.

So, if you would like to try it out, please download and install the plugin by following this link. You will also need the Adobe DNG Converter application, which is available for free from Adobe’s website.

A couple of release notes here. I haven’t implemented the progress bar, so don’t be alarmed. Maybe I will get that done on the plane tomorrow. Also, the plugin first exports the Master RAW file to your disk, does the conversion and then deletes the RAW copy. So if you watch in your Finder window you will see the files appearing and disappearing. And lastly if you try to export an image whose Master is not a RAW file (Jpeg or Tiff) it will still export the file, but it will skip the conversion to DNG and just leave it on your destination folder.

This pluign is meant to be essentially a macro. It doesn’t do anything you can;t already do with the Adobe DNG Converter application, but maybe someday it will!

Enjoy…

PS - I have only tested this on Leopard.


This entry was posted on Saturday, November 3rd, 2007 at 11:03 pm and is filed under DNGExporter, Developers, Micah Walter, News, Plugins. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

11 Responses to “New Plugin For DNG Export”

  1. New Aperture Plugin For DNG Export at Imaging Insider Says:

    […] Read More… […]


  2. John Beardsworth Says:

    Hi Micah

    How am I supposed to see this plug in? I’ve installed on Tiger but don’t see the plug in when I restart Aperture 1.5.6. Should it be visible under the Export menu.

    John


  3. Micah Says:

    John,
    I think I made a mistake with the installer package. I have just uploaded a new version that should install the plugin to your /Library/Application Support/Aperture/Plug-Ins/Export folder. Please let me know if it works for you.

    Also, I have not yet tried it on Tiger, but I hope to do so in the next couple of days…

    Thanks
    m


  4. John Beardsworth Says:

    OK, the installation did send the file directly to the HD rather than to the export plugins. I moved it manually and got the thing working as expected. Nice work (I did a similar thing for iView).

    Now… wouldn’t it be neat if you could write metadata into the freshly-minted DNG (eg creating an xmp sidecar file on the fly and killing it after the DNG is created). I’m just thinking of IPTC initially, but one might even pass adjustment details to the DNG. These could even be approximations for ACR adjustments, but might also be a way of backing up Aperture adjustments into the DNG. A subsequent plugin might read those adjustments back into Aperture, so the DNG could carry adjustment data between installations.


  5. Micah Says:

    John,
    Glad you got it working. I will be looking into the XMP/IPTC portion of the project very soon. However, I kinda doubt there will be much support for saving your Aperture adjustments in the DNG file.

    I hope one day we can all agree on a standard RAW format that is open source and has the ability to hang on to application meta-data. Even if that meta-data is proprietary, it would be nice to be able to easily transport it - thinking of the DNG as a container or folder for all the work associated with that image.

    DNG is a pretty controversial subject as it is not really “open.” I am planning to write more on this subject next week for Inside Aperture, so stay tuned!


  6. John Beardsworth Says:

    Not really open - now that’s contentious. You’d better get your facts firmly nailed down before you post that article.

    Some of the other posts at Inside Aperture/Lightroom are getting more banal or repetitive, but I do enjoy your articles.

    John


  7. John Beardsworth Says:

    Micah

    Maybe you will need to make a temporary export of the original with its sidecar, and send that temporary file to the DNG converter command line? That should get the descriptive metadata into the DNG.

    John


  8. Une sélection de plug-ins pour Aperture | MacStyle Says:

    […] Plugged In, qui référence les plug-ins pour Aperture, se décide à créer un plug-in, cela donne DNG Export, qui, comme son nom l’indique, vous permet d’exporter les photos RAW importées dans […]


  9. Dagan Says:

    I was relieved to find a solution to export DNGs from Aperature with adjustment and metadata included. I couldn’t believe it didn’t come with the program! I installed the plug-in… tested it and it crashed Aperature! Cool that someone is willing to take the time to solve the problem for others, but it didn’t work on my system.


  10. micah Says:

    it may need to be rebuilt for 2.0


  11. Will Says:

    Anyway to export these in DNG format with the adjustments I’ve done?


Leave a Reply