darktable-org / darktable-org/darktable

Nikon Z5 II Raw images show up black (incorrect white / black point values)

Open
#19,902 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

no-issue-activity
Dominant language
C
Stars
13.1k
Forks
1.4k
Avg merge
22h 14m
Merged PRs (30d)
198

Description

Is there an existing issue for this?
  • I checked and did not find my issue in the already reported ones
Describe the bug

With a Nikon Z5 II camera, with the RAW images set to NEF Lossless compressed, by default, black level 1, 2, 3, 4 are set to 0 and white point is also 0. This renders the image as a black box.

Clicking on the values pulls out the correct values, being Black level 1-4 as 1008, 1008, 1008, 1008; and White point 15892

Steps to reproduce
  1. Import Z5 II NEF Lossless compressed image
  2. Open image in darkroom
  3. Image renders as black
Expected behavior

Darkstable should show a visible image with the correct black levels and whitepoint

Logfile | Screenshot | Screencast

No response

Commit

No response

Where did you obtain darktable from?

darktable.org / GitHub release

darktable version

5.2.1

What OS are you using?

Linux

What is the version of your OS?

Mint Cinnamon 22.2

Describe your system

No response

Are you using OpenCL GPU in darktable?

None

If yes, what is the GPU card and driver?

No response

Please provide additional context if applicable. You can attach files too, but might need to rename to .txt or .zip

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No source file or test is named. Start by reproducing the issue in darkroom with a Nikon Z5 II lossless-compressed NEF and trace how its black and white point metadata is read; done means the image renders visibly with black levels of 1008 and a white point of 15892.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.