Dng sdk question

hi!
I was wondering, did anyone write a simple conversion program from dng to tiff format using this sdk?
I was trying to do that, but for some reason i cannot get results that look like the pictures from the photoshop itself
Thanks,
Ray

Ray, the DNG SDK contains a command-line tool called dng_validate which does exactly that, i.e., produces a TIFF from a DNG.
It will not produce identical results to Camera Raw, because Camera Raw contains other editing adjustments and image processing algorithms which are not contained in the DNG SDK.

Similar Messages

  • DNG SDK not working on Mac (Leopard)

    Hi, I am writing a program to create dng files via the latest adobe dng sdk. I follow the same basic recipe as outlined in the example dng_validate code. On a Windows PC, the created thumbnails and previews appear just fine. However, the same code on the Mac creates dng files that do not show the thumbnails or the previews. In addition, apple programs like Aperture do not recognize these dng files either, even though they validate correctly by the provided dng_validate program on the Mac. Is this a bug in the Mac version of the SDK? OR, are there additional steps that are needed for these dng files to work???

    Hi Eric,
    An example image is given below. The first one (test.dng) is the image we created with the Adobe DNG SDK on a Mac. The second image (test_dngv.dng) is the result of running it through the dng_validate program (which uses a compressed image by default with the -dng option), and therefore much smaller in size.
    Neither of these images produce visible thumbs or previews on the Mac (not in any of the Apple programs such as Finder, Preview, Aperture, iPhoto etc.). However, when placed onto a Windows machine, they appear just fine everywhere.
    As the previous poster has indicated, this may not be the fault of the Adobe DNG SDK, but for all practical purposes it is a hindrance to us. Whoever is at fault, the bottom line is that the DNG format is proving to be less portable than other image formats such as TIFF or JPG. We have no problem moving these other formats from any computer to any other computer, whether it be Mac or Windows. We are trying to support Adobe and its efforts with new standards, but this is costing us valuable engineering time in dealing with these matters, that just do not exist with other formats.
    And, I apologize if this is presented in the wrong forum. However, we would appreciate if you can help us in this matter. Obviously, it can be done, since the Adobe DNG Converter program is capable of generating dng files with proper thumbs and previews on a Mac. It is just not documented anywhere for developers trying to work with the DNG SDK.
    http://www.davidklepacki.com/test.dng
    http://www.davidklepacki.com/test_dngv.dng
    Thank you,
    David

  • DNG SDK thinks 0xFFFFFFFF is invalid white level for 32 bit integers

    As discussed in another message the DNG SDK does not seem to be able to write floating point DNGs. Since I need higher dynamic range than a 16 bit sample I instead went for 32 bit integers.
    This works, and I manage to create a file but when I run dng_validate on it it says the white level is invalid. The white level I have of course set to 0xFFFFFFFF to make use of the full 32 bit range. Looking into the code in dng_ifd.cpp where this test is made it seems like the default max white level is set to 65535.0 and the file's white level is compared against that, regardless if the sample type is 16 or 32 bit. This means that I can only make use of 16 bits of the 32 bit integer which seems kind of strange. Looking into the DNG spec I don't see anything there that forbids using the full 32 bit range of 32 bit samples. So this looks like a bug to me.
    This is with version 1.4
    the created file can be opened in Lightroom 4, so the only problem seems to be that dng_validate does not think its valid.
    Message was edited by: torger76, removed clipping issue, that was a fault in my code.

    Hello Charles,
    I would be concerned too if my MacBook Prowas running slowly.  I found a couple of articles I recommend to help isolate and troubleshoot this issue.
    I recommend reviewing this article first for possible causes of the slowness:
    OS X Mavericks: If your Mac runs slowly
    http://support.apple.com/kb/PH13895
    You can further isolate the issue by determining if it is only happening in your user account or if it is happening system-wide:
    Isolating an issue by using another user account
    http://support.apple.com/kb/TS4053
    Thank you for using Apple Support Communities.
    Best,
    Sheila M.

  • How to compile DNG SDK with GCC?

    I tried to compile DNG SDK with GCC, but I got stuck to the following error message:
    ... dng_flags.h:33:28: error: RawEnvironment.h: No such file or directory ...
    In other words, it seems that file 'RawEnvironment.h' is missing. I cannot find this file from DNG SDK or XMP SDK. Do you know where I could find this file or do you know how to compile DNG SDK with GCC?
    Regards Sami

    Please define either qMacOS or qWinOS (i.e., in your list of preprocessor defines). As you can see in line 32 of dng_flags.h this is required.

  • DNG SDK build project cannot find the xml sdk

    On win7/x64.  Installed dng sdk and all dependencies per the readme files.  xml sdk built OK with vc10 express, as 64 bit static and dll.
    But the vc solution for dng_validate has incorrect names for the xml sdk build projects, so it cannot find those components.  Specifically it looks for "..\..\..\xmp_sdk\build\vc\XMPCore.vcxproj".  the actual paths in the xmp sdk are different and longer, like "..\..\..\xmp_sdk\build\vc10\dynamic\windows_x64".  Moreover there is no XMPCore.vcxproj there.
    I suppose the real problem may be that the dng sdk project is trying to build it as .net managed code, while the xml sdk was built as open code.  So I guess what I am looking for is a way to build the dng sdk open.

    I would confirm your post, but I have not found a solution. I wish someone at Adobe would look into this.

  • DNG SDK vs Lightroom - difference(s) in TIFF output?

    Hi, I'm thinking about writing a batch program that uses the DNG SDK to create full-size JPEGs of images i've edited (by exporting to TIFF from the DNG SDK and then using imagemagick to convert to JPEG). I often forget to export the image after I've developed it in Lightroom, and it'd be handy to just batch process any DNG I've made changes to since import.
    If I save the develop metadata into a DNG from lightroom, how much (if any) of those development changes will the DNG SDK use when rendering a TIFF? Examples:
    - I typically make basic adjustments - exposure, recovery, highlights, contrast - will those be read automatically from the DNG?
    - If I embed one of the new color profiles into the DNG, will that be used when rendering?
    I'm guessing that the answer is a no, but I thought it was worth asking...
    Thanks,
    Joe

    The DNG SDK is mostly sample code, and is not intended to be used "as is" for actual work. It does not contain the all the actual rendering algorithms used by Adobe (for example, the de-mosaic algorithm in the SDK is very basic). It does implement the full DNG 1.2.0.0 profile color model, however, as a guide to others trying to add DNG 1.2.0.0 support.
    P.S. If you need to use the actual Adobe rendering algorithms, they are currently available in binary form (not source code like the DNG SDK), via the DNG WIC codec. This is Windows only, however.

  • Build DNG SDK on Mac with XCode 6.2

    Hello everyone,
    I am trying to build the DNG_SDK Version 1.4 with XCode 6.2. I have downloaded all the third party libraries for xmp and dng sdk. After linking errors with the current xmp sdk 201412, I tried to compile DNG_SDK with XMP SDK Version CS6. The XMP Subproject is found in my DNG_SDK and is build successfully.
    For the DNG SDK I still get linker errors and I have no clue why (regardless which architecture I select i386 or x64):
    Ld /Users/sboegel/Downloads/dng_sdk_1_4/dng_sdk/targets/mac/release/dng_validate normal i386
        cd /Users/sboegel/Downloads/dng_sdk_1_4/dng_sdk/projects/mac
        export MACOSX_DEPLOYMENT_TARGET=10.9
        /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cl ang++ -arch i386 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOS X10.9.sdk -L/Users/sboegel/Downloads/dng_sdk_1_4/dng_sdk/targets/mac/release -F/Users/sboegel/Downloads/dng_sdk_1_4/dng_sdk/targets/mac/release -filelist /Users/sboegel/Library/Developer/Xcode/DerivedData/dng_validate-fjjibtptniqsozaqnhhmkybxy udz/Build/Intermediates/dng_validate.build/Default/dng_validate\ release.build/Objects-normal/i386/dng_validate.LinkFileList -mmacosx-version-min=10.9 /Users/sboegel/Library/Developer/Xcode/DerivedData/dng_validate-fjjibtptniqsozaqnhhmkybxy udz/Build/Products/libXMPFilesStatic.a /Users/sboegel/Library/Developer/Xcode/DerivedData/dng_validate-fjjibtptniqsozaqnhhmkybxy udz/Build/Products/libXMPCoreStatic.a -framework Carbon -Xlinker -dependency_info -Xlinker /Users/sboegel/Library/Developer/Xcode/DerivedData/dng_validate-fjjibtptniqsozaqnhhmkybxy udz/Build/Intermediates/dng_validate.build/Default/dng_validate\ release.build/Objects-normal/i386/dng_validate_dependency_info.dat -o /Users/sboegel/Downloads/dng_sdk_1_4/dng_sdk/targets/mac/release/dng_validate
    Undefined symbols for architecture i386:
      "TXMPMeta<std::string>::Initialize()", referenced from:
          XMPFiles::Initialize(unsigned int, char const*, char const*) in libXMPFilesStatic.a(XMPFiles.o)
      "TXMPMeta<std::string>::SetProperty(char const*, char const*, std::string const&, unsigned int)", referenced from:
          P2_MetaHandler::SetAudioInfoFromLegacyXML(bool) in libXMPFilesStatic.a(P2_Handler.o)
          P2_MetaHandler::SetVideoFrameInfoFromLegacyXML(XML_Node*, bool) in libXMPFilesStatic.a(P2_Handler.o)
          MP3_MetaHandler::ProcessXMP() in libXMPFilesStatic.a(MP3_Handler.o)
          ReadIDXFile(std::string const&, std::string const&, TXMPMeta<std::string>*, bool&, MD5_CTX*, bool) in libXMPFilesStatic.a(SonyHDV_Handler.o)
          XDCAMEX_MetaHandler::ProcessXMP() in libXMPFilesStatic.a(XDCAMEX_Handler.o)
          XDCAM_Support::GetLegacyMetadata(TXMPMeta<std::string>*, XML_Node*, char const*, bool, std::string&) in libXMPFilesStatic.a(XDCAM_Support.o)
          RIFF::importProperties(RIFF_MetaHandler*) in libXMPFilesStatic.a(RIFF_Support.o)
      "TXMPMeta<std::string>::SetProperty(char const*, char const*, char const*, unsigned int)", referenced from:
          ID3_Support::ID3v1Tag::read(XMP_IO*, TXMPMeta<std::string>*) in libXMPFilesStatic.a(ID3_Support.o)
          P2_MetaHandler::SetXMPPropertyFromLegacyXML(bool, XML_Node*, char const*, char const*, char const*, bool) in libXMPFilesStatic.a(P2_Handler.o)
          P2_MetaHandler::SetGPSPropertyFromLegacyXML(XML_Node*, bool, char const*, char const*) in libXMPFilesStatic.a(P2_Handler.o)
          P2_MetaHandler::SetAltitudeFromLegacyXML(XML_Node*, bool) in libXMPFilesStatic.a(P2_Handler.o)
          MP3_MetaHandler::ProcessXMP() in libXMPFilesStatic.a(MP3_Handler.o)
          MPEG4_MetaHandler::ProcessXMP() in libXMPFilesStatic.a(MPEG4_Handler.o)
          ReadIDXFile(std::string const&, std::string const&, TXMPMeta<std::string>*, bool&, MD5_CTX*, bool) in libXMPFilesStatic.a(SonyHDV_Handler.o)
      "TXMPMeta<std::string>::DeleteProperty(char const*, char const*)", referenced from:
          P2_MetaHandler::SetRelationsFromLegacyXML(bool) in libXMPFilesStatic.a(P2_Handler.o)
          P2_MetaHandler::SetDurationFromLegacyXML(bool) in libXMPFilesStatic.a(P2_Handler.o)
          P2_MetaHandler::SetGPSPropertyFromLegacyXML(XML_Node*, bool, char const*, char const*) in libXMPFilesStatic.a(P2_Handler.o)
          P2_MetaHandler::SetAltitudeFromLegacyXML(XML_Node*, bool) in libXMPFilesStatic.a(P2_Handler.o)
          P2_MetaHandler::ProcessXMP() in libXMPFilesStatic.a(P2_Handler.o)
          JPEG_MetaHandler::ProcessXMP() in libXMPFilesStatic.a(JPEG_Handler.o)
          MPEG4_MetaHandler::ProcessXMP() in libXMPFilesStatic.a(MPEG4_Handler.o)
    Any hint is appreciated. Thanks
    I found a hint here (Xcode Compile Error Undefined symbols for architecture x86_64:   "TXMPMeta<std::string>::Initialize() that a include statement would be missing, but that is defined in the dng sdk (dng_xmp_sdk.cpp):
    #if qMacOS
    #ifndef MAC_ENV
    #define MAC_ENV 1
    #endif
    #endif
    #if qWinOS
    #ifndef WIN_ENV
    #define WIN_ENV 1
    #endif
    #endif
    #include <new>
    #include <string>
    #define TXMP_STRING_TYPE std::string
    #define XMP_INCLUDE_XMPFILES qDNGXMPFiles
    #define XMP_StaticBuild 1
    #include "XMP.incl_cpp"
    This cannot be the reason..

    Thank you so much! That has worked!
    I have downloaded XCode 5.1.1 and the build ran without errors. But still I is unclear to me what has changed. The Xcode-project file included in the dng sdk was configured compiling on Mac OS SDK 1.6. Anyway, I can go on with that. Thanks again

  • Using DNG SDK for 10bit DNG files

    Is there any simple way one can use DNG SDK to write 10bit DNG files?
    From what I have seen, DNG SDK can only validate/read/write 8 or 16bit files. I have quite a lot of 10bit raw data to be saved and performing a 16 bit conversion would be both time and space consuming.
    If there is no simple workaround to achieve this, is there any chance for future SDK versions to support nonpower of 2 pixel bit depth?
    Thank you for your time.

    > See these specifications for more information on TIFF and TIFF-EP
    I do know that specification. However, DNG deviates from the normal TIFF in enough points to warrant explicite specifications, particularly because several cameras' raw data is compressed in like but not identical ways.
    > I'm curious if CR will open 10bit DNG....
    The Pentax K10D creates 12bit, uncompressed DNG in this packed format and that will be processed by ACR correctly, so I guess you won't have any problem.
    On the other hand, it is interesting, that the DNG converter stores 12 and 14bit data in 16bit form, thereby avoiding the issue; a huge waste of space.

  • Get DNG Date Created from dng sdk

    I have successfully compiled the dng sdk and the validate app and I wondered what is a simple way to just get the date created out?

    Maybe your scanner software is doing something strange saving as a DNG that ACR does not like?  Try scanning as a TIF and open in ACR if that works for you.
    Scanning large format negatives as a 16 bit RGB tiff is and then opening in Camera RAW is my preferred workflow and I get to use all of the ACR tools and adjustments, much easier to do some of these than in Photoshop.
    Maybe the TIFF route might work for you - and once in ACR you can always save the output as DNG
    Mike

  • Compile DNG-SDK with VC6

    Hi all,
    I downloaded the DNG-SDK, and now am trying to compile it with VC6.
    There are two main problems:
    1) The data type 'unsigned long long' doesnt exist. What could I use instead?
    2) Is '__int64' ok to use instad of 'signed long long'?
    3) The constructor of class range_tag_set in Dng_Image_Writer.cpp does not compile. Does someone know the problem? What should I change?

    Please define either qMacOS or qWinOS (i.e., in your list of preprocessor defines). As you can see in line 32 of dng_flags.h this is required.

  • DNG SDK - What a Complete MESS !!!!!

    Hi - and sorry for this to be HIGHLY infriendly message
    I have downloaded and installed ALL latest greatest of anything pertaining to the DNG SDK -
    Followed ANY read me, configure, make, make install files available there.
    Installed CMAKE and everything else....
    I am on OS X 10.9 and USE the xCODE version of Mavericks
    I am developing MANY different things and NEVER have problems.
    I have in my life NEVER exprienced something as cumbersome and clumsy as this. NEVER!!!!
    I am trying to compile/build the inlcuded and generic dng_validate project. And this proves to be IMPOSSILBE.
    Simply put. I cannot figure it out. And I cannot do more that to follow the instructions provided in the SDK.
    This is incredible and I am missing the words to describe anger I am feeling.
    I realize this sdk is something that adobe cares nothing about - hence all the problems adobe are having with their own apps, which arent even capable of reading DNGs correctly...
    To whomever, maintaining this SDK ---- You are doing a really bad job at it !!!!
    Regards
    Morten

    The SDK is from 2 years ago. XCode has changed quite a bit since then, and the build settings are therefore a bit out of date.
    It's not any different with other projects in XCode that haven't kept up with the changes to the tool chain.
    It's not easy/trivial, but it is far from impossible to get this to build if you have experience writing your own code and not just building other people's code.
    You also have to make sure you are using the correct versions of the XMP SDK and the third party code.
    David Blake

  • DNG SDK

    With the intention of being able to read DNG SDK codes, I've started to study C++,
    But now I can not find where the main function is ))
    As you guess, I have no experience with SDKs ...
    I want to learn the process of raw conversion from the very beginning ...
    So, where should I start in the SDK for finding where the ADU numbers from the camera raw file are entered into the conversion pipeline?

    There isn't really a main function in the SDK itself. The closest thing is the dng_validate program, which shows how to call the various SDK functions.
    Sandy

  • Concurrent report export using enterprise SDK question

    Hello,<br>
    Our company uses Enterprise SDK to export report to PDF. We test our software using CR Server 2008 trial version. I am looking for advices for following questions:<br>
    1. As out testing server is trial version at the moment, it does not complain or generate any warning messages on numbers of concurrent users (we can only view current sessions and licenses from CMC). Could someone please let me know what will happen when full version CR server detects that max limit concurrent users access has reached? Will the server notify SDK, and SDK will generate exception; or the request will be queued until any other concurrent user end his session. <br>
    2. We implement an EJB to invoke SDK process. While EJB itself is thread safe, I am not quite sure if enterprise SDK is thread safe too. My assumption is that one SDK will be instantiated per JVM (like JRC?). It will issue a new thread to each report request (from EJB). Please correct me if I am completely wrong. <br>
    3. This is about licensing. Our scenario is there will be multiple (and concurrent) end users use our J2EE system, and may request report from CR server. Our J2EE system, however, will use one user account to login to CR server through enterprise SDK. In the other word, CR server will treat our J2EE system as one user (even if there are multiple or concurrent request). My question is that does it violate legal agreement with Business Object if I configure the user account our J2EE system uses as Named user?! If it is, we will get concurrent user licenses instead. Please advice. Thank you =)<br>
    Kind Regards,<br>
    mlie

    Hello Adam, <br>
    Thanks for your reply. It is very helpful. <br>
    As for point 1, what exact SDKException will SDK throw (e.g. SDKException.Unexpected)?<br>
    In point 2, "There have been issues reported previously that only occur when using EJB's.". Is it possible to let me know what kind of issues they are? <br>
    In point 3, as CMS supports Window AD authentication, and our system uses same mechanism to perform authentication, I guess the best strategy is to implement single sign on? Please advice. Thank you <br>
    Regards,<br>
    mlie

  • Migrate from Crystal Report Server XI R2 to new Eclipse RAS SDK Question

    Hi,
    I am migrating Crystal Report Server XI R2 RAS SDK to Eclipse RAS SDK which seems to be quite easy.
    I have the following old code which basicly programmaticly creates a Report from scratch adds a Table and then
    populates the Report with a Pojo Collection.
    <br> <br>
    Now before I would have : <br>
    <br>
    Table oTable = new Table(); <br>
    oTable.setName("reportTable"); <br>
    pbConnAttributes.putStringValue("QE_DatabaseType", "Java Beans Connectivity"); <br>
    pbConnAttributes.putStringValue(PropertyBagHelper.CONNINFO_DATABASE_DLL, "crdb_javabeans.dll"); <br>
    PropertyBag pbLogonProperties = new PropertyBag(); <br>
    pbLogonProperties.putStringValue("Java Bean Classes", className); <br>
    pbLogonProperties.putStringValue("SSOKEY", ""); <br>
    pbConnAttributes.put("QE_LogonProperties", pbLogonProperties); <br>
      pbConnAttributes.putBooleanValue(PropertyBagHelper.CONNINFO_SSO_ENABLED, false); <br>
    oTable.getConnectionInfo().setKind(ConnectionInfoKind.CRQE); <br>
    oTable.getConnectionInfo().setUserName(""); <br>
      oTable.getConnectionInfo().setPassword(null); <br>
      oTable.getConnectionInfo().setAttributes(pbConnAttributes); <br>
    //following statement throws Exception <br>
    doc.getDatabaseController().addTable(oTable, null); <br>
    <br>
    getDatabaseController().setDataSource(pojoCollection, pojoClass.class,"reportTable", "reportTable");
    <br>
    <br>
    Now wenn using the c <br>lient eclipse RAS SDK which pbConnAttributes should I use? <br>
    No matter which ones I choose I get a Bad Driver Exception or Named Exception. <br>
    Can anybody help?
    Edited by: snake-john99 on Aug 11, 2010 10:35 AM
    Edited by: snake-john99 on Aug 11, 2010 10:39 AM

    Hi Mikael,
    Since you're already on CR Server XI R2, you can use the Upgrade Management Tool to migrate all the content to CR Server 2013.
    Anwers to your questions:
    1) Yes, the Upgrade Management Tool does support this kind of migration
    2) It does seem that the UMT allows you to move all report instances as well as the scheduled jobs over to the new server
    3) I've always had issues with Business Views when using Import Wizard however I'm not sure whether they work well with the new UMT. In any case, I always prefer to export the LOVs and BVs from within the Business View Manager to a .xml file and then import them in the higher version of the Server, again, from within the Business View Manager.
    -Abhilash

  • DNG converter question

    I apologize for asking this question in this forum. But the DNG forum is not very active it seems. I have seen this problem mentioned in the past, but paid no attention to it and I can't find any of the references. I have no convert button on my DNG converter dialogue. Windows 7, DNG converter 8.4, 8 GB RAM. I have used this utility in the past without problems. I don't use it very often but was experimenting this morning

    I posted a similar question quite a while ago, and what I learned was that Bridge has a DNG converter built in, but it's using ACR to read the file before it can convert. So you need ACR support for your camera.
    AFAIK there's no way to point Bridge to a standalone DNG converter.
    I suggested an updateable DNG converter plugin for Bridge, don't know why nobody listened...I thought it was an excellent idea
    As for the metadata, you just have to try. I don't know if it can write metadata when it can't read the file.

Maybe you are looking for

  • Ipod won't connect to computer or itunes, help!

    everytime i try to connect my ipod touch to my computer/itunes it doesn't appear

  • I want to clean up unnecessary files from my Imac Pc ?

    I have my Mac for over 5 years and never done a clean up, is about time i am sure  i have stuff that could be deleted is an Imac with a Power Pc and running Leopard i would apriciated if someone can help me,apple wants to charge me by the hour, since

  • Setting primary key fields from sequence. Please advise

    What is the most logical place to automatically set primary key fields from sequence? jdoPrestore seems to be a little late - my instance will not have id till it's committed. I can not do it in constructor because it gets called every time Kodo need

  • Create attachment document XLS for Purchase Requisition

    Hi. I need to add attachment to my Purchase Requisition usig a FM. I found some topics on SDN where BAPI_DOCUMENT_CREATE2 is used. I placed it in my code and run it. Return gives me nothing. I get a new document number each time I run my program, but

  • Zoom IN and OUT on a Jpanel

    hello, i'm wondering if there is a way to apply zoom in and out features on a Jpanel that contains components. i googled it but found no answer. thank you