dcpTool is a command line utility which is used as follows:
-
dcpTool [options] file1 [file2]
Valid options:
-h Print this message
-c Compile file1(xml) to file2(dcp)
-d Decompile file1(dcp) to file2(xml) (default)
-i Convert file1(dcp) to invariate file2(dcp)
-u Convert file1(dcp) to untwisted file2(dcp)
The easiest was to use dcpTool is to open a terminal in the location that you copied the binary files to. e.g., if you copied the files to a DCP folder on the desktop, and have a file called test.dcp in that directory as well, you would open a terminal, then:
-
In Windows: dcptool -d test.dcp
In OS X: ./dcpTool -d test.dcp
-
This example will dump the XML representation of the DCP file to the terminal. For OS X, the leading “./” is required - in the examples below, its use is assumed if you are using OS X.
Example: Decompiling a DCP file to its XML equivalent
To decompile to an XML file, do the following:
-
dcpTool -d test.dcp test.xml
Example: Compiling an XML file to a binary DCP format that is usable by DCP aware applications
To compile an XML file, do the following:
-
dcpTool -c test.xml newprofile.dcp
Example: Extracting a DCP profile that is embedded in a DNG image file
To extract a DCP file, you need to perform two steps. First extract it as an XML file, then compile the XML file:
-
dcpTool -d your_image.dng test.xml
dcpTool -c test.xml newprofile.dcp
Example: Converting a binary DCP format file to an invariate form
To convert to invariate form, do the following. Note that dcpTool will automatically append "dcpTool Invariant" to the profile name:
-
dcpTool -i profile.dcp new_profile.dcp
Example: Removing all hue twists from a binary DCP format file
To convert to untwisted form, do the following. Note that dcpTool will automatically append "dcpTool Untwist" to the profile name:
-
dcpTool -u profile.dcp new_profile.dcp
-