Skip to content

Commit

Permalink
Updated numbers to match the files on my GitHub
Browse files Browse the repository at this point in the history
  • Loading branch information
mattpopovich committed Feb 27, 2024
1 parent 36b3967 commit c2f3cbf
Showing 1 changed file with 40 additions and 38 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ Where
* `default is sequential (one image at a time)`
* `-d = output directory`

Additional arguments can be found in [this .pdf](https://helpx.adobe.com/content/dam/help/en/camera-raw/digital-negative/jcr_content/root/content/flex/items/position/position-par/download_section/download-1/dng_converter_commandline.pdf)
Additional arguments can be found in [this .pdf](https://helpx.adobe.com/content/dam/help/en/camera-raw/digital-negative/jcr_content/root/content/flex/items/position/position-par/download_section/download-1/dng_converter_commandline.pdf).

View the scripts I made for this post at my GitHub repo [*AdobeDNGConverterScripts*](https://github.com/mattpopovich/AdobeDNGConverterScripts).

## Installation
Go [here](https://helpx.adobe.com/camera-raw/using/adobe-dng-converter.html), download and install the application.
Expand Down Expand Up @@ -75,7 +77,7 @@ total 551496
-rwxr-xr-x 1 root wheel 282361984 Jun 1 2023 Adobe DNG Converter
```

I'm not sure how to bring up a help menu for it... The CLI for Adobe DNG Converter has limited documentation available. [This .pdf](https://helpx.adobe.com/content/dam/help/en/camera-raw/digital-negative/jcr_content/root/content/flex/items/position/position-par/download_section/download-1/dng_converter_commandline.pdf) is about all I can find. Thankfully it explains some of the acceptable arguments that the executable understands.
I'm not sure how to bring up a help menu for it... The CLI for Adobe DNG Converter has limited documentation available. [This .pdf](https://helpx.adobe.com/content/dam/help/en/camera-raw/digital-negative/jcr_content/root/content/flex/items/position/position-par/download_section/download-1/dng_converter_commandline.pdf) is about all I can find. Thankfully, that `.pdf` explains some of the acceptable arguments that the executable understands.

If you want the same default settings that the GUI provides, you can use the following command:
```console
Expand Down Expand Up @@ -103,63 +105,63 @@ Note that these files are not bitwise reproducible (but they are exactly the sam
matt@mac $ /Applications/Adobe\ DNG\ Converter.app/Contents/MacOS/Adobe\ DNG\ Converter -fl *.GPR
matt@mac $ /Applications/Adobe\ DNG\ Converter.app/Contents/MacOS/Adobe\ DNG\ Converter -fl *.GPR
matt@mac $ shasum -a 256 *.dng
486395fba712ddaf3265d503f53a21a0977401e95e935857863239017692d49f GOPR0924.dng
66a4c517d62a396977cf101e49026e0dc2d4f9ab0775a6dd96b81e5dcd41daaa GOPR0924_1.dng
5c647d26c98bbcb34f66c7c8530cc006fab6a716d13f42dc98fa63ddb1b0b3e7 GOPR0925.dng
2864621bea9c221750bcea31b52009a063a36ebfd025bc892267e20a22c3986f GOPR0925_1.dng
486395fba712ddaf3265d503f53a21a0977401e95e935857863239017692d49f GOPR0000.dng
66a4c517d62a396977cf101e49026e0dc2d4f9ab0775a6dd96b81e5dcd41daaa GOPR0000_1.dng
5c647d26c98bbcb34f66c7c8530cc006fab6a716d13f42dc98fa63ddb1b0b3e7 GOPR0001.dng
2864621bea9c221750bcea31b52009a063a36ebfd025bc892267e20a22c3986f GOPR0001_1.dng
matt@mac $ ls -l *.dng
-rw-r--r-- 1 matt staff 15166544 Feb 30 03:17 GOPR0924.dng
-rw-r--r-- 1 matt staff 15166544 Feb 30 03:17 GOPR0924_1.dng
-rw-r--r-- 1 matt staff 14433870 Feb 30 03:17 GOPR0925.dng
-rw-r--r-- 1 matt staff 14433870 Feb 30 03:17 GOPR0925_1.dng
-rw-r--r-- 1 matt staff 11876742 Feb 26 22:55 GOPR0000.dng
-rw-r--r-- 1 matt staff 11876742 Feb 26 22:55 GOPR0000_1.dng
-rw-r--r-- 1 matt staff 13340838 Feb 26 22:55 GOPR0001.dng
-rw-r--r-- 1 matt staff 13340838 Feb 26 22:55 GOPR0001_1.dng
```

### Argument runtime and file size comparison

I am using 3000x4000 `.GPR` (raw) files shot with my [GoPro](https://amzn.to/3ZUuXcD) Hero 8 Black:
```console
matt@mac $ file GPR/*
GPR/GOPR0924.GPR: TIFF image data, little-endian, direntries=57, height=3000, bps=16, compression=JBIG, ITU-T T.85, PhotometricIntepretation=(unknown=0xffff8023), description=C:\DCIM\100GOPRO\GOPR0924.GPR, manufacturer=GoPro, model=HERO8 Black, orientation=[*2*], width=4000
matt@mac $ file *.GPR
GOPR0000.GPR: TIFF image data, little-endian, direntries=58, height=3000, bps=16, compression=JBIG, ITU-T T.85, PhotometricIntepretation=(unknown=0xffff8023), description=C:\DCIM\100GOPRO\GOPR3115.GPR, manufacturer=GoPro, model=HERO8 Black, orientation=[*2*], width=4000

GPR/GOPR0925.GPR: TIFF image data, little-endian, direntries=58, height=3000, bps=16, compression=JBIG, ITU-T T.85, PhotometricIntepretation=(unknown=0xffff8023), description=C:\DCIM\100GOPRO\GOPR0925.GPR, manufacturer=GoPro, model=HERO8 Black, orientation=[*2*], width=4000
GOPR0001.GPR: TIFF image data, little-endian, direntries=58, height=3000, bps=16, compression=JBIG, ITU-T T.85, PhotometricIntepretation=(unknown=0xffff8023), description=C:\DCIM\100GOPRO\G0029214.GPR, manufacturer=GoPro, model=HERO8 Black, orientation=[*2*], width=4000

matt@mac $ ls -l GPR
-rwxr-xr-x 1 mattpopovich staff 3926850 Feb 23 18:19 GOPR0924.GPR
-rwxr-xr-x 1 mattpopovich staff 3492368 Feb 23 18:19 GOPR0925.GPR
matt@mac $ ls -l *.GPR
-rwx------ 1 matt staff 6186776 Feb 26 22:54 GOPR0000.GPR
-rwx------ 1 matt staff 3677656 Feb 26 22:54 GOPR0001.GPR
```

<details markdown="1">
<summary><a href="https://github.com/mattpopovich/AdobeDNGConverterScripts/blob/main/compare_adobe_dng_converter_arguments.sh">I wrote a script</a> to compare the runtime and output file sizes of the different arguments for the executable</summary>
<summary><a href="https://github.com/mattpopovich/AdobeDNGConverterScripts/blob/main/compare_AdobeDNGConverter_arguments.sh">I wrote a script</a> to compare the runtime and output file sizes of the different arguments for the executable</summary>
```console
matt@mac $ ./compareDNGsettings.sh
Default = 28492484B, .8896226s
Using flags -c -p1 -cr7.1 -dng1.7.1 = -.0081965s (0%), +0B (+0%) vs default
Using flags -u -p1 -cr7.1 -dng1.7.1 = -.0341326s (-3%), +0B (+0%) vs default
Using flags -l -p1 -cr7.1 -dng1.7.1 = +.0024795s (+0%), +0B (+0%) vs default
Using flags -c -p1 -e -cr7.1 -dng1.7.1 = -.0055936s (0%), +0B (+0%) vs default
Using flags -c -p0 -cr7.1 -dng1.7.1 = -.0499066s (-5%), -238840B (0%) vs default
Using flags -c -p2 -cr7.1 -dng1.7.1 = +.7349366s (+82%), +4165366B (+14%) vs default
Using flags -c -p1 -fl -cr7.1 -dng1.7.1 = +.0102043s (+1%), +1379742B (+4%) vs default
Using flags -c -p1 -lossy -cr7.1 -dng1.7.1 = +.1604536s (+18%), -18143172B (-63%) vs default
Using flags -c -p1 -mp -cr7.1 -dng1.7.1 = -.2128286s (-23%), +0B (+0%) vs default
matt@mac $ ./compare_AdobeDNGConverter_arguments.sh
Default = 25217580B, .992175s
Using flags -c -p1 -cr7.1 -dng1.7.1 = -.0003828s (0%), +0B (+0%) vs default
Using flags -u -p1 -cr7.1 -dng1.7.1 = -.0146741s (-1%), +0B (+0%) vs default
Using flags -l -p1 -cr7.1 -dng1.7.1 = -.0108651s (-1%), +0B (+0%) vs default
Using flags -c -p1 -e -cr7.1 -dng1.7.1 = -.002032s (0%), +0B (+0%) vs default
Using flags -c -p0 -cr7.1 -dng1.7.1 = -.066626s (-6%), -140136B (0%) vs default
Using flags -c -p2 -cr7.1 -dng1.7.1 = +.7514072s (+75%), +3101062B (+12%) vs default
Using flags -c -p1 -fl -cr7.1 -dng1.7.1 = +.043321s (+4%), +2295970B (+9%) vs default
Using flags -c -p1 -lossy -cr7.1 -dng1.7.1 = +.2135278s (+21%), -8252052B (-32%) vs default
Using flags -c -p1 -mp -cr7.1 -dng1.7.1 = -.3165521s (-31%), +0B (+0%) vs default
```
</details>

This particular example was ran using the two `*.GPR` files I mentioned above.
This particular example was ran using the two `*.GPR` files I mentioned above (available from [my GitHub repo](https://github.com/mattpopovich/AdobeDNGConverterScripts/tree/main/examples)).

<!-- Had to add <code> &nbsp; </code> here because spaces are not kept between `` unfortunately -->

| [Flags](https://helpx.adobe.com/content/dam/help/en/camera-raw/digital-negative/jcr_content/root/content/flex/items/position/position-par/download_section/download-1/dng_converter_commandline.pdf) | Speedup (s) | Speedup (%) | Size (bytes) | Size (%) |
|-------|-------------|-------------|--------------|----------|
| <code>-c -p1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.0081965s | 0% | +0B | +0% |
| <code>-u -p1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.0341326s | -3% | +0B | +0% |
| <code>-l -p1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | +.0024795s | +0% | +0B | +0% |
| <code>-c -p1 -e &nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.0055936s | 0% | +0B | +0% |
| <code>-c -p0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.0499066s | -5% | -238,840B | 0% |
| <code>-c -p2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | +.7349366s | +82% | +4,165,366B | +14% |
| <code>-c -p1 -fl &nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | +.0102043s | +1% | +1,379,742B | +4% |
| <code>-c -p1 -lossy -cr7.1 -dng1.7.1</code> | +.1604536s | +18% | -18,143,172B | -63% |
| <code>-c -p1 -mp &nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.2128286s | -23% | +0B | +0% |
| <code>-c -p1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.0003828s | 0% | +0B | +0% |
| <code>-u -p1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.0146741s | -1% | +0B | +0% |
| <code>-l -p1 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.0108651s | -1% | +0B | +0% |
| <code>-c -p1 -e &nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.002032s | 0% | +0B | +0% |
| <code>-c -p0 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.066626s | -6% | -140,136B | 0% |
| <code>-c -p2 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | +.7514072s | +75% | +3,101,062B | +14% |
| <code>-c -p1 -fl &nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | +.043321s | +4% | +2,295,970B | +4% |
| <code>-c -p1 -lossy -cr7.1 -dng1.7.1</code> | +.2135278s | +21% | -8,252,052B | -63% |
| <code>-c -p1 -mp &nbsp;&nbsp; -cr7.1 -dng1.7.1</code> | -.3165521s | -31% | +0B | +0% |

Where
* Speedup = smaller (negative) is better
Expand Down

0 comments on commit c2f3cbf

Please sign in to comment.