DNG Converter: What is the command line option for lossy compression?

  • 4
  • Question
  • Updated 4 years ago
  • Answered
What is the command line option for lossy compression?

And for the sake of completeness, command-line option for fast-load data?

These two tidbits would allow me to get by until documentation is formally updated.

Thanks,
Rob
Photo of Rob Cole

Rob Cole

  • 4831 Posts
  • 385 Reply Likes

Posted 6 years ago

  • 4
Photo of Eric Chan

Eric Chan, Camera Raw Engineer

  • 620 Posts
  • 122 Reply Likes
Official Response
There are two command-line options to control image size for lossy compression. You can use -side to specify the maximum number of pixels on a side. Similarly, you can use -count to specify the maximum number of pixels total. Both of these options imply using lossy compression.

Example 1:

./Adobe DNG Converter -side 2000 MyRawFile.NEF

produces a lossy compressed DNG that is limited to 2000 pixels on the long side.

Example 2:

./Adobe DNG Converter -count 10000000 MyRawFile.NEF

produces a lossy compressed DNG that is limited to 10 MP total.

Example 3:

./Adobe DNG Converter -lossy MyRawFile.NEF

produces a lossy compressed DNG that has the same pixel dimensions as the input.